/* Auth V3 - Centered Popup Card Login */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.auth-v3-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.auth-v3-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 20px;
}

.auth-v3-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(135, 206, 235, 0.3) 0%, rgba(255, 255, 255, 0.8) 100%);
    pointer-events: none;
}

/* Logo in top-left corner */
.auth-v3-logo {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-v3-logo img {
    height: 36px;
    width: auto;
}

.auth-v3-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-v3-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
}

/* Card Styles */
.auth-v3-card {
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.auth-v3-card-icon {
    width: 56px;
    height: 56px;
    background: #f8fafc;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.auth-v3-card-icon i {
    font-size: 24px;
    color: #1e293b;
}

.auth-v3-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-v3-card-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.auth-v3-card-header p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

/* Form Styles */
.auth-v3-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-v3-form-group {
    position: relative;
}

.auth-v3-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-v3-input-icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
}

.auth-v3-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #f8fafc;
    color: #1e293b;
    transition: all 0.2s ease;
}

.auth-v3-input:focus {
    outline: none;
    border-color: #1e293b;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1);
}

.auth-v3-input::placeholder {
    color: #94a3b8;
}

.auth-v3-password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.auth-v3-password-toggle:hover {
    color: #64748b;
}

.auth-v3-forgot-link {
    text-align: right;
    margin-top: -8px;
}

.auth-v3-forgot-link a {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-v3-forgot-link a:hover {
    color: #1e293b;
}

.auth-v3-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.auth-v3-btn:hover {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
}

.auth-v3-btn:active {
    transform: translateY(0);
}

/* Remember Me */
.auth-v3-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #64748b;
}

.auth-v3-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1e293b;
    cursor: pointer;
}

/* Divider */
.auth-v3-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.auth-v3-divider::before,
.auth-v3-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.auth-v3-divider span {
    font-size: 13px;
    color: #94a3b8;
    white-space: nowrap;
}

/* Signup Link */
.auth-v3-signup-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #64748b;
}

.auth-v3-signup-link a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.auth-v3-signup-link a:hover {
    text-decoration: underline;
}

/* Footer */
.auth-v3-footer {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    z-index: 5;
}

.auth-v3-footer a {
    color: #475569;
    text-decoration: none;
    margin-left: 16px;
}

.auth-v3-footer a:hover {
    color: #1e293b;
}

/* Register Form Specific */
.auth-v3-card-wide {
    max-width: 560px;
}

.auth-v3-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 16px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.auth-v3-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-v3-select {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #f8fafc;
    color: #1e293b;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.auth-v3-select:focus {
    outline: none;
    border-color: #1e293b;
    background-color: #ffffff;
}

.auth-v3-invalid-feedback {
    display: none;
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

.auth-v3-input.is-invalid {
    border-color: #ef4444;
}

.auth-v3-input.is-valid {
    border-color: #22c55e;
}

.required {
    color: #ef4444;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-v3-card {
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    .auth-v3-card-wide {
        max-width: 100%;
    }
    
    .auth-v3-form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-v3-logo {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 20px;
        justify-content: center;
    }
    
    .auth-v3-footer {
        position: relative;
        bottom: auto;
        margin-top: 24px;
    }
}
