/**
 * Accore Authentication Styles
 *
 * @package Accore
 */

/* Auth Page Layout */
.accore-auth-page {
    min-height: 100vh;
}

.accore-auth-page .site-header,
.accore-auth-page .site-footer {
    display: none;
}

.accore-auth-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Left Panel - Branding */
.accore-auth-branding {
    flex: 0 0 480px;
    background: linear-gradient(180deg, #13343b 0%, #0d2428 100%);
    padding: 48px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.accore-auth-branding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(49, 184, 198, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(78, 11, 98, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.accore-auth-logo {
    position: relative;
    z-index: 1;
    margin-bottom: 48px;
}

.accore-auth-logo img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.accore-auth-logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #fbfaf4;
    text-decoration: none;
}

.accore-auth-hero {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.accore-auth-hero h1 {
    font-family: 'Inter', sans-serif;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 300;
    color: #fbfaf4;
    margin: 0 0 24px 0;
    letter-spacing: -0.5px;
}

.accore-auth-hero p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(251, 250, 244, 0.7);
    max-width: 360px;
    margin: 0;
}

.accore-auth-features {
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.accore-auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(251, 250, 244, 0.8);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.accore-auth-feature:last-child {
    margin-bottom: 0;
}

.accore-auth-feature svg {
    flex-shrink: 0;
    color: #31b8c6;
}

/* Right Panel - Form */
.accore-auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background-color: #fcfcf9;
}

.accore-auth-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.accore-auth-form-header {
    text-align: center;
    margin-bottom: 32px;
}

.accore-auth-form-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #13343b;
    margin: 0 0 8px 0;
}

.accore-auth-form-header p {
    font-size: 14px;
    color: rgba(19, 52, 59, 0.6);
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* Form Styles */
.accore-auth-form {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.accore-form-group {
    margin-bottom: 20px;
}

.accore-form-group:last-of-type {
    margin-bottom: 24px;
}

.accore-form-group label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #13343b;
    margin-bottom: 8px;
}

.accore-form-group input[type="text"],
.accore-form-group input[type="email"],
.accore-form-group input[type="password"] {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #13343b;
    background: #fcfcf9;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.accore-form-group input:focus {
    outline: none;
    border-color: #4e0b62;
    box-shadow: 0 0 0 3px rgba(78, 11, 98, 0.1);
    background: #fff;
}

.accore-form-group input::placeholder {
    color: rgba(19, 52, 59, 0.4);
}

.accore-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.accore-checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.accore-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4e0b62;
    cursor: pointer;
    margin: 0;
}

.accore-checkbox-group label {
    font-size: 14px;
    color: rgba(19, 52, 59, 0.8);
    cursor: pointer;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.accore-forgot-link {
    font-size: 14px;
    color: #4e0b62;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s ease;
}

.accore-forgot-link:hover {
    color: #3a0849;
    text-decoration: underline;
}

/* Submit Button */
.accore-auth-submit {
    width: 100%;
    height: 48px;
    background: #4e0b62;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.accore-auth-submit:hover {
    background: #3a0849;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 11, 98, 0.3);
}

.accore-auth-submit:active {
    transform: translateY(0);
}

.accore-auth-submit:disabled {
    background: rgba(78, 11, 98, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.accore-auth-submit.loading {
    position: relative;
    color: transparent;
}

.accore-auth-submit.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-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alt Link */
.accore-auth-alt-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: rgba(19, 52, 59, 0.7);
    font-family: 'Inter', sans-serif;
}

.accore-auth-alt-link a {
    color: #4e0b62;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.accore-auth-alt-link a:hover {
    text-decoration: underline;
}

/* Messages */
.accore-auth-messages {
    margin-bottom: 20px;
}

.accore-auth-messages:empty {
    display: none;
}

.accore-auth-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.accore-auth-message:last-child {
    margin-bottom: 0;
}

.accore-auth-message.error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

.accore-auth-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

/* Password Strength */
.accore-password-strength {
    margin-top: 8px;
    height: 4px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.accore-password-strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background 0.3s ease;
}

.accore-password-strength-bar.weak {
    width: 33%;
    background: #dc2626;
}

.accore-password-strength-bar.medium {
    width: 66%;
    background: #f59e0b;
}

.accore-password-strength-bar.strong {
    width: 100%;
    background: #16a34a;
}

.accore-password-hint {
    font-size: 12px;
    color: rgba(19, 52, 59, 0.6);
    margin-top: 6px;
    font-family: 'Inter', sans-serif;
}

/* Terms Group */
.accore-terms-group {
    margin-bottom: 24px;
}

.accore-terms-group .accore-checkbox-group label {
    font-size: 13px;
    line-height: 1.5;
}

.accore-terms-group a {
    color: #4e0b62;
    text-decoration: none;
}

.accore-terms-group a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .accore-auth-branding {
        flex: 0 0 400px;
        padding: 40px;
    }
    
    .accore-auth-hero h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .accore-auth-container {
        flex-direction: column;
    }
    
    .accore-auth-branding {
        flex: none;
        min-height: 280px;
        padding: 32px;
    }
    
    .accore-auth-hero {
        justify-content: flex-end;
    }
    
    .accore-auth-hero h1 {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .accore-auth-hero p {
        font-size: 14px;
    }
    
    .accore-auth-features {
        display: none;
    }
    
    .accore-auth-form-panel {
        padding: 32px 24px;
    }
    
    .accore-auth-form {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .accore-auth-branding {
        min-height: 220px;
        padding: 24px;
    }
    
    .accore-auth-hero h1 {
        font-size: 24px;
    }
    
    .accore-auth-form-panel {
        padding: 24px 16px;
    }
    
    .accore-auth-form {
        padding: 20px;
        border-radius: 8px;
    }
    
    .accore-form-row {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}
