/**
 * Authentication Pages Styles
 * Login, Register, and Password Reset
 */

.custom-login-page {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, rgba(64, 166, 194, 0.05), rgba(184, 224, 227, 0.1));
    position: relative;
    overflow: hidden;
}

.custom-login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(64, 166, 194, 0.08), transparent 60%),
                radial-gradient(circle at bottom left, rgba(180, 213, 105, 0.08), transparent 60%);
    pointer-events: none;
}

.custom-login-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.login-image-section {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    display: none;
    box-shadow: inset -10px 0 30px rgba(42, 47, 111, 0.1);
}

.login-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--hcmd-blue), var(--hcmd-sky));
    opacity: 0.9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #fff;
    text-align: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.login-image-overlay h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-image-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
}

.login-form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(184, 224, 227, 0.3);
    box-shadow: 0 8px 32px rgba(42, 47, 111, 0.06);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(64, 166, 194, 0.03), rgba(180, 213, 105, 0.03));
    pointer-events: none;
}

.form-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(42, 47, 111, 0.08);
}

.form-container h2 {
    margin-bottom: 1.5rem;
    color: var(--hcmd-navy);
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--hcmd-navy), var(--hcmd-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-row {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-row label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--hcmd-navy);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-row input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(184, 224, 227, 0.4);
    border-radius: 10px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.form-row input:hover {
    border-color: rgba(64, 166, 194, 0.4);
    background: #ffffff;
}

.form-row input:focus {
    outline: none;
    border-color: var(--hcmd-blue);
    box-shadow: 0 0 0 3px rgba(64, 166, 194, 0.15);
    background: #ffffff;
}

.button {
    width: 100%;
    height: 48px;
    padding: 0 1.5rem;
    background: linear-gradient(135deg, var(--hcmd-blue), var(--hcmd-sky));
    color: white !important;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(64, 166, 194, 0.2);
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.button:hover::before {
    opacity: 1;
}

.button:active {
    transform: translateY(0);
}

.form-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.form-footer a {
    color: var(--hcmd-blue);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.form-footer a:hover {
    color: var(--hcmd-navy);
    transform: translateX(4px);
}

.reset-description {
    margin-bottom: 1.5rem;
    color: var(--hcmd-neutral);
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Error and Success Messages */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    margin: 0 0 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    list-style: none;
    position: relative;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
}

.woocommerce-error {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.woocommerce-message {
    background: rgba(180, 213, 105, 0.1);
    border-color: rgba(180, 213, 105, 0.2);
    color: var(--hcmd-green);
}

.woocommerce-info {
    background: rgba(64, 166, 194, 0.1);
    border-color: rgba(64, 166, 194, 0.2);
    color: var(--hcmd-blue);
}

.woocommerce-error::before,
.woocommerce-message::before,
.woocommerce-info::before {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.woocommerce-error::before {
    background: rgba(255, 68, 68, 0.15);
    color: #ff4444;
}

.woocommerce-message::before {
    background: rgba(180, 213, 105, 0.15);
    color: var(--hcmd-green);
}

.woocommerce-info::before {
    background: rgba(64, 166, 194, 0.15);
    color: var(--hcmd-blue);
}

/* Password Reset Success */
.reset-success {
    text-align: center;
    padding: 2rem 0;
}

.reset-success i {
    font-size: 2.5rem;
    color: var(--hcmd-blue);
    background: linear-gradient(135deg, rgba(64, 166, 194, 0.08), rgba(180, 213, 105, 0.08));
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
}

.reset-success i::before {
    background: linear-gradient(135deg, var(--hcmd-blue), var(--hcmd-sky));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reset-success i::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(64, 166, 194, 0.1), rgba(180, 213, 105, 0.1));
    opacity: 0.5;
    z-index: -1;
}

.reset-success h2 {
    color: var(--hcmd-navy);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.reset-success p {
    color: var(--hcmd-neutral);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Login/Register Tabs */
.form-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid rgba(184, 224, 227, 0.3);
}

.form-tab {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    cursor: pointer;
    color: var(--hcmd-neutral);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.form-tab:hover {
    color: var(--hcmd-blue);
    background: rgba(64, 166, 194, 0.05);
}

.form-tab.active {
    color: var(--hcmd-blue);
    background: linear-gradient(135deg, rgba(64, 166, 194, 0.08), rgba(180, 213, 105, 0.08));
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(42, 47, 111, 0.06);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--hcmd-neutral);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.password-toggle:hover {
    background: linear-gradient(135deg, rgba(64, 166, 194, 0.08), rgba(180, 213, 105, 0.08));
    color: var(--hcmd-blue);
}

.password-toggle i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.password-toggle:hover i {
    transform: scale(1.1);
}

/* Remember Me Checkbox */
.woocommerce-form__label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--hcmd-neutral);
    font-size: 0.9rem;
}

.woocommerce-form__input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    border: 2px solid rgba(184, 224, 227, 0.4);
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.woocommerce-form__input[type="checkbox"]:checked {
    background: var(--hcmd-blue);
    border-color: var(--hcmd-blue);
}

/* Lost Password Link */
.lost-password-link {
    text-align: center;
    margin-top: 1.5rem;
}

.lost-password-link a {
    color: var(--hcmd-blue);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.lost-password-link a:hover {
    color: var(--hcmd-navy);
    transform: translateX(4px);
}

/* Footer */
.login-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--hcmd-neutral);
    line-height: 1.6;
}

.login-footer a {
    color: var(--hcmd-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: var(--hcmd-navy);
}

/* Enhanced Icon Styles */
.form-row i,
.button i,
.form-footer i,
.lost-password-link i {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.button i {
    font-size: 1.1rem;
    margin-right: 0.25rem;
}

.form-footer a:hover i,
.lost-password-link a:hover i {
    transform: translateX(4px);
}

/* Message Icons */
.woocommerce-error::before,
.woocommerce-message::before,
.woocommerce-info::before {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.woocommerce-error::before {
    background: rgba(255, 68, 68, 0.15);
    color: #ff4444;
}

.woocommerce-message::before {
    background: rgba(180, 213, 105, 0.15);
    color: var(--hcmd-green);
}

.woocommerce-info::before {
    background: rgba(64, 166, 194, 0.15);
    color: var(--hcmd-blue);
}

/* Login/Register Tabs */
@media (min-width: 992px) {
    .login-image-section {
        display: block;
    }
    
    .form-container {
        padding: 2.5rem;
    }
}

@media (max-width: 576px) {
    .login-form-section {
        padding: 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .form-tabs {
        margin-bottom: 1.5rem;
    }
    
    .login-image-overlay h1 {
        font-size: 2rem;
    }
}

/* High Contrast Support */
@media (forced-colors: active) {
    .button {
        border: 1px solid CanvasText;
    }
    
    .form-tab.active {
        outline: 2px solid CanvasText;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
