/**
 * VCS Authentication Pages Stylesheet
 * Custom CSS for Login, Forgot Password, and Passcode views
 */

/* Shifting Gradient Background */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(-45deg, #0F172A, #1E1B4B, #311042, #022C22);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #F8FAFC;
    padding: 1.5rem;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Decorative Shape Particles */
.auth-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;
    mix-blend-mode: screen;
}

.auth-shape-1 {
    width: 300px;
    height: 300px;
    background: #4F46E5;
    top: -50px;
    left: -50px;
    animation: floatShape1 20s infinite alternate;
}

.auth-shape-2 {
    width: 400px;
    height: 400px;
    background: #06B6D4;
    bottom: -100px;
    right: -100px;
    animation: floatShape2 25s infinite alternate;
}

.auth-shape-3 {
    width: 250px;
    height: 250px;
    background: #EC4899;
    top: 40%;
    right: 20%;
    animation: floatShape3 18s infinite alternate;
}

@keyframes floatShape1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 50px) scale(1.2); }
}

@keyframes floatShape2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-100px, -60px) scale(0.8); }
}

@keyframes floatShape3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 80px) scale(1.3); }
}

/* Auth Card Glassmorphism */
.auth-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
    background: rgba(30, 41, 59, 0.45);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 2.5rem;
    overflow: hidden;
    animation: authCardEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes authCardEnter {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Card Header & Brand */
.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    text-align: center;
}

.auth-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.4);
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    font-size: 0.85rem;
    color: #94A3B8;
}

/* Custom inputs for Auth page */
.auth-input-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.auth-input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    pointer-events: none;
    transition: color 0.2s ease;
}

.auth-input-group .auth-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}

.auth-input-group .auth-input:focus {
    border-color: #818CF8;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25);
}

.auth-input-group .auth-input:focus + i {
    color: #818CF8;
}

/* Custom Checkbox (Remember Me) */
.auth-checkbox-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    color: #CBD5E1;
    cursor: pointer;
    user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
    display: none;
}

.auth-checkbox-box {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    transition: all 0.2s ease;
}

.auth-checkbox-label input[type="checkbox"]:checked + .auth-checkbox-box {
    background: #4F46E5;
    border-color: #4F46E5;
}

.auth-checkbox-box::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    color: #FFFFFF;
    display: none;
}

.auth-checkbox-label input[type="checkbox"]:checked + .auth-checkbox-box::after {
    display: block;
}

/* Forgot Password Link */
.auth-link {
    font-size: 0.85rem;
    color: #818CF8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #A5B4FC;
    text-decoration: underline;
}

/* Password Strength Meter */
.pw-strength-container {
    margin-top: 0.5rem;
}

.pw-strength-bar {
    height: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.pw-strength-progress {
    height: 100%;
    width: 0;
    background-color: #EF4444;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.pw-strength-text {
    font-size: 0.75rem;
    color: #94A3B8;
    margin-top: 0.25rem;
    display: block;
    text-align: right;
}

/* CAPTCHA Element Styling */
.captcha-container {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.captcha-image-wrapper {
    background: #FFFFFF;
    border-radius: 6px;
    padding: 0.25rem;
    display: flex;
    align-items: center;
}

.captcha-image-wrapper img {
    height: 38px;
    border-radius: 4px;
}

.captcha-refresh-btn {
    background: none;
    border: none;
    color: #818CF8;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.captcha-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(180deg);
}

/* Submit Button styling */
.auth-submit-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #4F46E5 0%, #818CF8 100%);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: all 0.25s ease;
    margin-top: 1rem;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #5B52F2 0%, #939EFE 100%);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.5);
    transform: translateY(-1px);
}

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

/* Footer Info link styling */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #94A3B8;
}

/* Responsive adjustment */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.75rem;
    }
    .auth-title {
        font-size: 1.3rem;
    }
}
