/* Auth Pages Styles - Following Style Guide */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
    background-color: rgba(248, 248, 248, 1);
    box-sizing: border-box;
}

.auth-card {
    background: rgba(255, 255, 255, 1);
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-sizing: border-box;
}

.auth-title {
    font-family: Poppins, sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: rgba(33, 33, 33, 1);
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(56, 56, 56, 1);
    text-align: center;
    margin-bottom: 32px;
}

.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(33, 33, 33, 1);
    display: block;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(242, 244, 246, 1);
    border-radius: 12px;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(33, 33, 33, 1);
    background: rgba(255, 255, 255, 1);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: rgba(231, 208, 25, 1);
    box-shadow: 0 0 0 3px rgba(231, 208, 25, 0.1);
}

.form-input::placeholder {
    color: rgba(142, 142, 142, 1);
}

.form-input.error {
    border-color: #dc3545;
}

.error-message {
    display: block;
    color: #dc3545;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 400;
    margin-top: 4px;
    min-height: 16px;
}

.forgot-password-link {
    color: rgba(231, 208, 25, 1);
    text-decoration: none;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 400;
    display: inline-block;
    transition: all 0.3s ease;
}

.forgot-password-link:hover {
    text-decoration: underline;
    color: rgba(200, 180, 20, 1);
}

.auth-button {
    width: 100%;
    padding: 12px 30px;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgba(33, 33, 33, 1);
    background-color: rgba(231, 208, 25, 1);
    border: none;
    border-radius: 75px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-top: 8px;
}

.auth-button:hover {
    background-color: rgba(200, 180, 20, 1);
}

.auth-button:disabled {
    background-color: rgba(200, 200, 200, 1);
    cursor: not-allowed;
    color: rgba(142, 142, 142, 1);
}

.form-footer {
    margin-top: 24px;
    text-align: center;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(56, 56, 56, 1);
}

.auth-link {
    color: rgba(231, 208, 25, 1);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-link:hover {
    text-decoration: underline;
    color: rgba(200, 180, 20, 1);
}

.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 400;
    display: none;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.required {
    color: #dc3545;
    font-weight: 500;
}

.optional {
    color: rgba(56, 56, 56, 1);
    font-weight: 400;
    font-size: 12px;
}

textarea.form-input {
    resize: vertical;
    font-family: Poppins, sans-serif;
    min-height: 120px;
}

.form-help {
    display: block;
    color: rgba(56, 56, 56, 1);
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 400;
    margin-top: 4px;
}

.auth-step {
    width: 100%;
}

#code {
    text-align: center;
    font-family: Poppins, sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 8px;
}

/* Back to website button - Style Guide Primary Button */
.back-to-website {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.back-to-website-button {
    padding: 12px 30px;
    background-color: rgba(0, 0, 0, 1);
    color: rgba(231, 208, 25, 1);
    border: none;
    border-radius: 75px;
    text-decoration: none;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.back-to-website-button:hover {
    background-color: rgba(50, 50, 50, 1);
    color: rgba(255, 230, 50, 1);
}

.back-to-website-button::before {
    content: "←";
    font-size: 18px;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 24px 20px;
    }
    
    .auth-title {
        font-size: 28px;
    }
    
    .auth-subtitle {
        font-size: 14px;
    }
    
    .form-input {
        font-size: 14px;
        padding: 14px 16px;
    }
    
    .auth-button {
        font-size: 14px;
        padding: 12px 24px;
    }
    
    .back-to-website {
        top: 10px;
        left: 10px;
    }
    
    .back-to-website-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 60px 16px 40px;
    }
    
    .auth-card {
        padding: 20px 16px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .back-to-website-button {
        padding: 8px 16px;
        font-size: 12px;
    }
}
