/* ===== MODERN AUTHENTICATION STYLES ===== */

/* ===========================================================================
   Note: Design tokens are now centralized in design-tokens.css
   This file contains authentication-specific component styles only.
   =========================================================================== */

/* Legacy aliases for backwards compatibility with auth pages */
:root {
    --auth-primary: var(--gradient-primary);
    --auth-secondary: var(--gradient-secondary);
    --auth-success: var(--gradient-info);
    --auth-warning: var(--gradient-warning);
    --auth-danger: var(--gradient-danger);
    --auth-info: var(--gradient-success);
}

/* ===== GLOBAL AUTH STYLES ===== */
.auth-body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #009D77 0%, #006B4E 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.auth-body.register-page {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* ===== ANIMATED BACKGROUND ===== */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.bg-shape.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.bg-shape.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -5%;
    animation-delay: 2s;
}

.bg-shape.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 70%;
    animation-delay: 4s;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    animation: floating 8s ease-in-out infinite;
}

.floating-element.calendar {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.floating-element.users {
    top: 30%;
    right: 20%;
    animation-delay: 2s;
}

.floating-element.location {
    bottom: 30%;
    left: 10%;
    animation-delay: 4s;
}

.floating-element.chart {
    bottom: 20%;
    right: 15%;
    animation-delay: 6s;
}

/* ===== AUTH CONTAINER ===== */
.auth-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== BRANDING SECTION ===== */
.auth-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    position: relative;
    overflow: hidden;
}

.auth-branding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

.brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 500px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.logo-img,
.logo-im {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    background: white;
    padding: var(--space-sm);
    object-fit: contain;
}

.brand-name {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.brand-tagline {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    opacity: 1;
}

.brand-description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: var(--space-lg);
}

/* ===== FEATURES PREVIEW (Login) ===== */
.features-preview {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.feature-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.feature-text h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.feature-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.92;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* ===== REGISTRATION BENEFITS ===== */
.registration-benefits {
    margin-top: var(--space-lg);
}

.registration-benefits h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(52, 168, 83, 0.3);
    border-radius: 50%;
    color: #4ade80;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benefit-text h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.benefit-text p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===== FORM CONTAINER ===== */
.auth-form-container {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 0;
    position: relative;
}

.auth-form-content {
    flex: 1;
    padding: var(--space-xl);
    overflow-y: auto;
}

/* ===== FORM HEADER ===== */
.form-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.form-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 var(--space-sm) 0;
    background: var(--gradient-primary, linear-gradient(135deg, #00C896 0%, #00976E 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.form-subtitle {
    font-size: 0.9375rem;
    color: var(--dark-grey);
    margin: 0;
}

/* ===== ACCOUNT TYPE SELECTOR ===== */
.account-type-selector {
    display: flex;
    gap: 6px;
    margin-bottom: var(--space-lg);
    padding: 5px;
    background: var(--light);
    border-radius: var(--radius-md);
    border: 1px solid var(--grey);
}

.account-type-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px var(--space-sm);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--dark-grey);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    min-height: 56px;
    justify-content: center;
}

.account-type-btn i {
    font-size: 1.375rem;
}

.account-type-btn.active {
    background: white;
    color: var(--color-primary, #00C896);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.account-type-btn:not(.active):hover {
    background: rgba(0, 200, 150, 0.05);
    color: var(--color-primary, #00C896);
}

/* ===== REGISTRATION PROGRESS ===== */
.registration-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-md);
    background: var(--light);
    border-radius: var(--radius-lg);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    position: relative;
    transition: var(--transition-smooth);
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--grey);
    color: var(--dark-grey);
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.progress-step.active .step-icon {
    background: var(--auth-primary);
    color: white;
    box-shadow: var(--shadow-md);
    transform: scale(1.1);
}

.step-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark-grey);
    transition: var(--transition-fast);
}

.progress-step.active .step-label {
    color: var(--dark);
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--grey);
    margin: 0 var(--space-sm);
    position: relative;
    min-width: 50px;
}

.progress-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--auth-primary);
    transition: var(--transition-smooth);
}

.progress-step.active ~ .progress-line::after {
    width: 100%;
}

/* ===== ALERT SYSTEM ===== */
.alert-container {
    margin-bottom: var(--space-lg);
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    position: relative;
}

.alert-error {
    background: rgba(234, 67, 53, 0.1);
    border-color: rgba(234, 67, 53, 0.3);
    color: var(--red);
}

.alert-info {
    background: rgba(0, 200, 150, 0.1);
    border-color: rgba(0, 200, 150, 0.3);
    color: var(--blue);
}

.alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-content {
    flex: 1;
}

.alert-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.alert-content p {
    margin: 0;
    font-size: 0.9rem;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.alert-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* ===== FORM STYLES ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.registration-form {
    position: relative;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

.step-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: var(--light);
    border-radius: var(--radius-md);
}

.step-header h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 var(--space-xs) 0;
}

.step-header p {
    color: var(--dark-grey);
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-label,
.field-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--space-xs);
    font-size: 0.9rem;
}

.form-label i,
.field-label i {
    font-size: 1rem;
    color: var(--blue);
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    min-height: 48px;
    border: 1.5px solid var(--grey);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: inherit;
    background: white;
    color: var(--dark);
    transition: var(--transition-fast);
    resize: vertical;
    line-height: 1.5;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--dark-grey);
    font-size: 0.875rem;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary, #00C896);
    box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.15);
    background: #fafffe;
}

.input-icon {
    position: absolute;
    right: var(--space-sm);
    color: var(--dark-grey);
    font-size: 1.1rem;
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    right: var(--space-sm);
    background: none;
    border: none;
    color: var(--dark-grey);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    font-size: 1.1rem;
}

.password-toggle:hover {
    color: var(--blue);
    background: rgba(0, 200, 150, 0.1);
}

/* ===== SELECT STYLES ===== */
.select-container {
    position: relative;
}

.form-select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    padding-right: 3rem;
    border: 2px solid var(--grey);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
    transition: var(--transition-fast);
    appearance: none;
}

.form-select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.1);
}

.select-icon {
    position: absolute;
    right: var(--space-sm);
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-grey);
    pointer-events: none;
    font-size: 1.2rem;
}

/* ===== PASSWORD STRENGTH ===== */
.password-strength {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xs);
}

.strength-indicator {
    flex: 1;
    height: 4px;
    background: var(--grey);
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: var(--transition-smooth);
    background: var(--red);
}

.strength-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--dark-grey);
    min-width: 80px;
}

/* ===== FIELD HINTS ===== */
.field-hint {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--dark-grey);
    margin-top: var(--space-xs);
}

.field-hint i {
    font-size: 0.9rem;
    color: var(--blue);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--red);
    margin-top: var(--space-xs);
}

.error-message i {
    font-size: 0.9rem;
}

/* ===== LOCATION STATUS ===== */
.location-status {
    position: absolute;
    right: 3.5rem;
    font-size: 1rem;
    transition: var(--transition-fast);
}

/* ===== CHECKBOX STYLES ===== */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    margin-bottom: var(--space-sm);
}

.checkbox-container.large {
    padding: var(--space-sm);
    background: var(--light);
    border-radius: var(--radius-md);
    border: 1px solid var(--grey);
    transition: var(--transition-fast);
}

.checkbox-container.large:hover {
    border-color: var(--blue);
    background: rgba(0, 200, 150, 0.05);
}

.checkbox-input {
    display: none;
}

.checkbox-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid var(--grey);
    border-radius: var(--radius-sm);
    background: white;
    transition: var(--transition-fast);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-input:checked + .checkbox-mark {
    background: var(--blue);
    border-color: var(--blue);
}

.checkbox-input:checked + .checkbox-mark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--dark);
    line-height: 1.4;
}

.checkbox-label a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* ===== FORM ACTIONS (login page — forgot-password row) ===== */
.auth-form .form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0.25rem 0 var(--space-sm) 0;
    padding: 0;
    border: none;
}

.forgot-password {
    color: var(--color-primary, #00C896);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.forgot-password:hover {
    color: var(--color-secondary, #00976E);
    text-decoration: underline;
}

/* ===== TERMS SECTION ===== */
.terms-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.terms-box {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--light);
    border-radius: var(--radius-md);
    border: 1px solid var(--grey);
}

.terms-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(0, 200, 150, 0.1);
    border-radius: var(--radius-md);
    color: var(--blue);
    font-size: 1.8rem;
    flex-shrink: 0;
}

.terms-content h4 {
    margin: 0 0 var(--space-sm) 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
}

.terms-content p {
    margin: 0 0 var(--space-md) 0;
    color: var(--dark-grey);
    line-height: 1.5;
}

.terms-links {
    display: flex;
    gap: var(--space-sm);
}

.terms-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: white;
    border: 1px solid var(--grey);
    border-radius: var(--radius-sm);
    color: var(--blue);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.terms-link:hover {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* ===== FORM NAVIGATION ===== */
.form-navigation {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.btn-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--grey);
    background: white;
    color: var(--dark);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-nav:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: rgba(0, 200, 150, 0.05);
}

.btn-nav.next {
    margin-left: auto;
}

/* ===== BUTTON STYLES ===== */
.btn-login,
.btn-register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    width: 100%;
    padding: 0.875rem 1.5rem;
    min-height: 52px;
    background: var(--gradient-primary, linear-gradient(135deg, #00C896 0%, #00976E 100%));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    margin-top: var(--space-sm);
    box-shadow: 0 4px 15px rgba(0, 200, 150, 0.35);
}

.btn-login:hover,
.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 200, 150, 0.45);
}

.btn-login:active,
.btn-register:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 200, 150, 0.3);
}

.btn-login:disabled,
.btn-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: none;
    animation: spin 1s linear infinite;
}

.btn-login.loading .btn-text,
.btn-register.loading .btn-text {
    display: none;
}

.btn-login.loading .btn-loader,
.btn-register.loading .btn-loader {
    display: block;
}

/* ===== SOCIAL LOGIN ===== */
.social-login {
    margin-top: var(--space-lg);
    text-align: center;
}

.divider {
    position: relative;
    margin: var(--space-lg) 0;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--grey);
}

.divider span {
    background: white;
    padding: 0 var(--space-md);
    color: var(--dark-grey);
    font-size: 0.9rem;
}

.social-buttons {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--grey);
    background: white;
    color: var(--dark);
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.social-btn:hover:not(:disabled) {
    border-color: var(--blue);
    color: var(--blue);
}

.social-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.social-btn.google:hover:not(:disabled) {
    border-color: #db4437;
    color: #db4437;
}

.social-btn.facebook:hover:not(:disabled) {
    border-color: #3b5998;
    color: #3b5998;
}

.social-note {
    color: var(--dark-grey);
    font-size: 0.8rem;
}

/* ===== FORM FOOTER ===== */
.form-footer {
    text-align: center;
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--grey);
}

.register-text,
.login-text {
    margin: 0;
    color: var(--dark-grey);
}

.register-link,
.login-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-primary, #00C896);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.register-link:hover,
.login-link:hover {
    color: var(--color-secondary, #00976E);
    text-decoration: underline;
}

/* ===== AUTH FOOTER ===== */
.auth-footer {
    padding: var(--space-md) var(--space-xl);
    background: var(--light);
    border-top: 1px solid var(--grey);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--dark-grey);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary, #00C896);
    text-decoration: underline;
}

.copyright {
    margin: 0;
    color: var(--dark-grey);
    font-size: 0.8rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .auth-branding {
        display: none;
    }
    
    .auth-form-content {
        padding: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .auth-body {
        padding: var(--space-sm);
    }
    
    .auth-container {
        margin: var(--space-sm);
        border-radius: var(--radius-lg);
        min-height: calc(100vh - 2rem);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-title {
        font-size: 2rem;
    }
    
    .brand-name {
        font-size: 2.5rem;
    }
    
    .registration-progress {
        padding: var(--space-sm);
    }
    
    .progress-line {
        min-width: 30px;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .form-navigation {
        flex-direction: column-reverse;
    }
    
    .btn-nav.next {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .auth-form-content {
        padding: var(--space-md);
    }
    
    .form-title {
        font-size: 1.75rem;
    }
    
    .registration-progress {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .progress-line {
        width: 2px;
        height: 30px;
        min-width: auto;
    }
    
    .progress-step {
        flex-direction: row;
        gap: var(--space-sm);
    }
    
    .floating-element {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    75% {
        transform: translateY(20px) rotate(-5deg);
    }
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===== UTILITY CLASSES ===== */
.rotating {
    animation: spin 1s linear infinite;
}

.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

.scale-in {
    animation: scaleIn 0.3s ease forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .auth-background,
    .floating-elements,
    .social-login,
    .auth-footer {
        display: none;
    }
    
    .auth-container {
        grid-template-columns: 1fr;
        box-shadow: none;
        border: none;
    }
    
    .auth-branding {
        display: none;
    }
}

/* ===== PASSWORD SPECIFIC STYLES ===== */

/* Password Reset Page Specific Background */
.auth-body.password-reset-page {
    background: linear-gradient(135deg, #00C896 0%, #00976E 100%);
}

.auth-body.new-password-page {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Password Reset Container */
.password-reset-container,
.new-password-container {

}

/* Reset Icon in Form Header */
.form-header .reset-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--auth-primary);
    border-radius: 50%;
    color: white;
    font-size: 2.5rem;
    margin: 0 auto var(--space-md) auto;
    box-shadow: var(--shadow-lg);
}

/* Reset Process Steps */
.reset-process {
    margin-top: var(--space-lg);
}

.reset-process h3,
.password-requirements h3,
.security-tips h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    text-align: left;
    color: white;
}

.process-step,
.requirement-item,
.tip-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.process-step:hover,
.requirement-item:hover,
.tip-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.process-icon,
.requirement-icon,
.tip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.process-icon {
    background: rgba(0, 200, 150, 0.3);
    color: #87ceeb;
}

.requirement-icon {
    background: rgba(52, 168, 83, 0.3);
    color: #4ade80;
}

.tip-icon {
    background: rgba(255, 193, 7, 0.3);
    color: #ffd43b;
}

.process-text h4,
.requirement-text p,
.tip-text p {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.process-text p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.9);
}

/* Password Requirements and Tips */
.password-requirements,
.security-tips {
    margin-top: var(--space-lg);
}

.requirement-text p,
.tip-text p {
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Password Progress Indicator */
.password-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-md);
    background: var(--light);
    border-radius: var(--radius-lg);
}

.password-progress .progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    position: relative;
    transition: var(--transition-smooth);
}

.password-progress .step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--grey);
    color: var(--dark-grey);
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.password-progress .progress-step.completed .step-icon {
    background: var(--green);
    color: white;
    box-shadow: var(--shadow-md);
}

.password-progress .progress-step.active .step-icon {
    background: var(--auth-primary);
    color: white;
    box-shadow: var(--shadow-md);
    transform: scale(1.1);
}

.password-progress .step-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark-grey);
    transition: var(--transition-fast);
}

.password-progress .progress-step.completed .step-label,
.password-progress .progress-step.active .step-label {
    color: var(--dark);
    font-weight: 600;
}

.password-progress .progress-line {
    flex: 1;
    height: 2px;
    background: var(--grey);
    margin: 0 var(--space-sm);
    position: relative;
    min-width: 50px;
}

.password-progress .progress-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--green);
    transition: var(--transition-smooth);
}

.password-progress .progress-step.completed ~ .progress-line::after,
.password-progress .progress-step.completed .progress-line::after {
    width: 100%;
}

/* Password Match Indicator */
.password-match {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: var(--space-xs);
    transition: var(--transition-fast);
}

.password-match i {
    font-size: 0.9rem;
}

/* Reset and Update Password Buttons */
.btn-reset,
.btn-update-password {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    width: 100%;
    padding: var(--space-md);
    background: var(--auth-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    margin-top: var(--space-sm);
}

.btn-reset:hover,
.btn-update-password:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-reset:disabled,
.btn-update-password:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: var(--grey);
}

.btn-update-password:disabled {
    background: var(--grey);
    color: var(--dark-grey);
}

.btn-reset .btn-loader,
.btn-update-password .btn-loader {
    display: none;
    animation: spin 1s linear infinite;
}

.btn-reset.loading .btn-text,
.btn-update-password.loading .btn-text {
    display: none;
}

.btn-reset.loading .btn-loader,
.btn-update-password.loading .btn-loader {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.back-link:hover {
    color: var(--dark);
    text-decoration: underline;
}

.back-text {
    text-align: center;
    margin: 0;
    color: var(--dark-grey);
}

/* Security Note */
.security-note {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(0, 200, 150, 0.1);
    border: 1px solid rgba(0, 200, 150, 0.3);
    border-radius: var(--radius-md);
    margin-top: var(--space-lg);
}

.security-icon {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 200, 150, 0.2);
    border-radius: 50%;
    color: var(--blue);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.security-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue);
}

.security-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--dark);
    line-height: 1.4;
}

/* Success Alert */
.alert-success {
    background: rgba(52, 168, 83, 0.1);
    border-color: rgba(52, 168, 83, 0.3);
    color: var(--green);
}

/* Floating Elements for Password Pages */
.floating-element.security,
.floating-element.lock,
.floating-element.shield,
.floating-element.refresh {
    animation-delay: 1s;
}

.floating-element.email {
    top: 50%;
    left: 5%;
    animation-delay: 3s;
}

.floating-element.key {
    top: 70%;
    right: 10%;
    animation-delay: 5s;
}

/* Responsive Design for Password Pages */
@media (max-width: 1024px) {
    .password-reset-container,
    .new-password-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .reset-process,
    .password-requirements,
    .security-tips {
        display: none;
    }
}

@media (max-width: 768px) {
    .password-progress {
        padding: var(--space-sm);
    }
    
    .password-progress .progress-line {
        min-width: 30px;
    }
    
    .password-progress .step-label {
        font-size: 0.75rem;
    }
    
    .form-header .reset-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .password-progress {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .password-progress .progress-line {
        width: 2px;
        height: 30px;
        min-width: auto;
    }
    
    .password-progress .progress-step {
        flex-direction: row;
        gap: var(--space-sm);
    }
    
    .security-note {
        flex-direction: column;
        text-align: center;
    }
    
    .security-icon {
        align-self: center;
    }
}

/* Dark Mode for Password Pages */
@media (prefers-color-scheme: dark) {
    .password-progress {
        background: #2a2a2a;
        border-color: #404040;
    }
    
    .security-note {
        background: rgba(0, 200, 150, 0.2);
        border-color: rgba(0, 200, 150, 0.4);
    }
    
    .security-content h4 {
        color: #87ceeb;
    }
    
    .security-content p {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .password-match {
        color: rgba(255, 255, 255, 0.8);
    }
}

/* Animation for Password Strength */
.strength-bar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for password inputs */
.new-password-form .form-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.1);
}

/* Enhanced button states */
.btn-update-password:not(:disabled):hover {
    background: linear-gradient(135deg, #00976E 0%, #007A5A 100%);
}

.btn-reset:hover {
    background: linear-gradient(135deg, #00976E 0%, #007A5A 100%);
}