/* Register Form Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-container {
    background: white;
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.register-title {
    color: #FF4500;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.password-field {
    position: relative;
    margin-bottom: 4px;
}

/* Ensure password inputs leave space for the toggle button */
.password-field input[type="password"] {
    padding-right: 44px; /* space for the eye button */
    height: 44px;
}

/* Stronger, register-specific overrides to avoid being overwritten by global rules in style.css */
.register-container input[type="password"],
.register-container input[type="text"],
.register-container input[type="email"] {
    -webkit-appearance: none;
    appearance: none;
}

.register-container .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    background: transparent;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.toggle-password { /* make sure it doesn't shift layout on click */
    background: transparent;
    line-height: 1;
}

.toggle-password:hover {
    color: #333;
}

.password-requirements {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    margin-bottom: 15px;
}

/* Make the requirements text slightly more visible and aligned */
.password-requirements {
    color: #555;
    margin-left: 2px;
}

.terms-section {
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.terms-section input[type="checkbox"] {
    margin-top: 3px;
}

.terms-section label {
    font-size: 14px;
    color: #333;
}

.terms-section a {
    color: #0066cc;
    text-decoration: none;
}

.terms-section a:hover {
    text-decoration: underline;
}

.create-account-btn {
    width: 100%;
    padding: 12px;
    background: #FF4500;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.create-account-btn:hover {
    background: #E63E00;
}

.separator {
    text-align: center;
    margin: 20px 0;
    color: #666;
    position: relative;
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #666;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.separator::before {
    margin-right: 1em;
}

.separator::after {
    margin-left: 1em;
}

.google-btn {
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
    transition: background-color 0.2s;
}

.google-btn:hover {
    background: #f5f5f5;
}

.google-btn img {
    width: 18px;
    height: 18px;
}

.login-link {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.login-link a {
    color: #FF4500;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Focus States */
.form-group input:focus {
    outline: none;
    border-color: #FF4500;
    box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.1);
}

/* Error States */
.form-group input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.form-group input:invalid:not(:placeholder-shown) + .toggle-password {
    color: #dc3545;
}

/* Loading State for Button */
.create-account-btn.loading {
    background: #FF4500;
    opacity: 0.8;
    cursor: not-allowed;
    position: relative;
}

.create-account-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s infinite linear;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}