/* Password Reset Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Helvetica+Neue:wght@400;500&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #1a1a1a; /* Fallback color while image loads */
    background-image: url('../../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Better mobile performance */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ensure smooth loading */
    transition: background-image 0.3s ease;
}

/* Preload optimization for mobile */
@media (max-width: 768px) {
    body {
        background-attachment: scroll; /* Better for mobile */
        background-size: cover;
        background-position: center center;
        /* Force hardware acceleration for smoother rendering */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: background-image;
        /* Ensure background image is still visible */
        background-image: url('../../images/background.jpg') !important;
    }
    
    /* Add loading state - only show if image hasn't loaded */
    body:not(.image-loaded)::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
        z-index: -1;
        opacity: 1;
        transition: opacity 0.5s ease;
    }
    
    /* Hide loading background when image loads */
    body.image-loaded::before {
        opacity: 0;
    }
}

.role-selection-container {
    text-align: center;
}

/* Logo and Title Block */
.logo-title-block {
    margin-bottom: 40px;
}

.logo-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17.61px;
}

.logo-icon {
    width: 38.7px;
    height: auto;
}

.logo-text {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 24.86px;
    letter-spacing: 0.45rem;
    color: #FAFAFB;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Main Selection Block */
.selection-block {
    width: 324px;
    background: #1A1A1A;
    border-radius: 18px;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-height: 267px;
    padding-bottom: 43.2px;
}

/* Selection Block for Confirm Page */
.selection-block-confirm {
    min-height: 267px;
    height: 267px;
}

.selection-content {
    padding: 30px 0 0;
    padding-bottom: 17.4px;
    box-sizing: border-box;
}

/* Password Reset Title */
.password-reset-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 16.2px;
    line-height: 100%;
    letter-spacing: 0px;
    color: #FAFAFB;
    text-align: center;
    margin-bottom: 40px;
}

/* Form Fields */
.form-fields {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13.5px;
    margin-bottom: 17.4px;
}

/* Form Errors */
.form-errors {
    width: 100%;
    margin-bottom: 10px;
}

.error-field {
    color: #C29D78;
    font-weight: 500;
    margin-right: 5px;
}

.error-text {
    color: #FFFFFF;
    font-size: 12px;
    line-height: 1.3;
}

.field-error {
    color: #FFFFFF;
    font-size: 11px;
    margin-top: 4px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border-left: 2px solid #FFFFFF;
    word-wrap: break-word;
    max-width: 100%;
    line-height: 1.3;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.form-field {
    width: 288px;
    height: 34.2px;
    border-radius: 7.5px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: #1A1A1A;
    padding: 0 15px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.09px;
    color: rgba(255, 255, 255, 0.3);
    box-sizing: border-box;
}

.form-field::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.09px;
}

.form-field:focus {
    outline: none;
    border-color: #C29D78;
    color: #FAFAFB;
}

/* Error Messages */
.error-message {
    color: #FFFFFF;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 12px;
    text-align: center;
    margin: 10px 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    max-width: 288px;
    display: block;
}

/* Buttons */
.role-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    width: 100%;
}

.role-button {
    width: 288px;
    height: 34px;
    border-radius: 9px;
    border: none;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 10.8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.role-button.continue {
    background: #C29D78;
    color: #FAFAFB;
}

.role-button.continue:hover {
    background: #B08A65;
    transform: translateY(-1px);
}

/* Bottom Login Block */
.login-block {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 324px;
    height: 43.2px;
    background: #2C2C2C;
    border-radius: 0 0 18px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-text {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 10.8px;
    color: #FAFAFB;
    text-align: center;
    line-height: 1.4;
    padding: 0 20px;
}

.login-text a {
    color: #C29D78;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-text a:hover {
    color: #B08A65;
    text-decoration: underline;
}

/* Password Reset Confirm Content */
.password-reset-confirm-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
}

.sms-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 13px;
}

.password-reset-message {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.4;
    color: #FAFAFB;
    text-align: center;
    margin: 0;
    margin-bottom: 15px;
}

/* Terms Text */
.terms-text {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 10.8px;
    line-height: 18px;
    letter-spacing: 0px;
    text-align: center;
    color: #FAFAFB;
    margin-top: 40px;
    padding: 0 20px;
}

.terms-text a,
.terms-text .user-notice,
.terms-text .privacy-policy {
    color: #C29D78;
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-text a:hover,
.terms-text .user-notice:hover,
.terms-text .privacy-policy:hover {
    color: #C29D78;
    text-decoration: none;
}

/* Mobile styles moved to mobile/registration_mobile.css */

