﻿/* ===== HI-TECH Login Page - Professional Redesign ===== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Jost:wght@300;400;500;600&display=swap');

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

body {
    font-family: 'Jost', sans-serif;
    overflow: hidden;
    height: 100vh;
}

/* ===== BACKGROUND SLIDESHOW ===== */
.bg-slideshow {
    position: fixed;
    inset: 0;
    z-index: 0;
}

    .bg-slideshow .slide {
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        opacity: 0;
        transition: opacity 1.8s ease-in-out, background-size 8s ease-in-out;
        will-change: opacity, background-size;
    }

        .bg-slideshow .slide:first-child {
            opacity: 1;
        }

/* ===== MAIN LAYOUT ===== */
.login-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100vh;
    padding-right: 8vw;
}

/* ===== GLASS CARD ===== */
.glass-card {
    width: 400px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    padding: 48px 40px 36px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    animation: cardReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== LOGO SECTION ===== */
.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.icon-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255,255,255,0.4);
    margin-bottom: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .icon-circle:hover {
        transform: scale(1.04);
        box-shadow: 0 6px 28px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.5);
    }

    .icon-circle img {
        width: 130px;
        height: 130px;
        object-fit: contain;
        border-radius: 50%;
    }

.brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
}

.brand-tagline {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    margin-top: 3px;
    text-align: center;
}

/* ===== DIVIDER ===== */
.card-divider {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    margin: 0 auto 28px;
}

/* ===== FORM GROUPS ===== */
.form-group {
    position: relative;
    margin-bottom: 18px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    pointer-events: none;
    transition: color 0.25s ease;
    z-index: 2;
}

.glass-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.10) !important;
    border: 1px solid rgba(255, 255, 255, 0.20) !important;
    border-radius: 10px !important;
    padding: 13px 44px 13px 44px !important;
    color: #fff !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 0.3px;
    outline: none !important;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
    -webkit-appearance: none;
}

    .glass-input::placeholder {
        color: rgba(255, 255, 255, 0.40) !important;
        font-weight: 300;
        font-size: 13px;
    }

    .glass-input:focus {
        background: rgba(255, 255, 255, 0.16) !important;
        border-color: rgba(255, 255, 255, 0.45) !important;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08) !important;
        color: #fff !important;
    }

        .glass-input:focus + .input-icon,
        .form-group:focus-within .input-icon {
            color: rgba(255, 255, 255, 0.85);
        }

    /* Autocomplete fix */
    .glass-input:-webkit-autofill,
    .glass-input:-webkit-autofill:hover,
    .glass-input:-webkit-autofill:focus {
        -webkit-text-fill-color: #fff !important;
        -webkit-box-shadow: 0 0 0px 1000px rgba(60, 40, 20, 0.5) inset !important;
        transition: background-color 5000s ease-in-out 0s;
        border-color: rgba(255, 255, 255, 0.35) !important;
    }

/* ===== PASSWORD TOGGLE EYE ===== */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.40);
    font-size: 14px;
    z-index: 5;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease, transform 0.2s ease;
    background: none;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

    .toggle-password:hover {
        color: rgba(255, 255, 255, 0.90);
        transform: translateY(-50%) scale(1.1);
    }

    .toggle-password:active {
        transform: translateY(-50%) scale(0.95);
    }

/* Password input needs extra right padding for the eye icon */
.password-wrapper .glass-input {
    padding-right: 48px !important;
}

/* ===== REMEMBER ME ===== */
.remember-row {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
}

.form-check-input {
    width: 15px !important;
    height: 15px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.30) !important;
    border-radius: 4px !important;
    cursor: pointer;
    margin: 0 !important;
    position: relative !important;
    top: 0 !important;
    flex-shrink: 0;
    accent-color: rgba(255, 255, 255, 0.8);
    transition: border-color 0.2s ease;
}

    .form-check-input:checked {
        background: rgba(255,255,255,0.85) !important;
        border-color: rgba(255,255,255,0.85) !important;
    }

.form-check-label {
    color: rgba(255, 255, 255, 0.60);
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0.3px;
    cursor: pointer;
    user-select: none;
    margin: 0 !important;
    line-height: 1;
}

/* ===== LOGIN BUTTON ===== */
.btn-glass {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, rgba(200,160,100,0.75), rgba(160,110,60,0.85)) !important;
    border: 1px solid rgba(220,180,120,0.40) !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 18px rgba(160, 110, 60, 0.35);
    position: relative;
    overflow: hidden;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn-glass::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
        border-radius: inherit;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .btn-glass:hover {
        background: linear-gradient(135deg, rgba(220,180,110,0.85), rgba(180,130,70,0.95)) !important;
        box-shadow: 0 6px 24px rgba(160, 110, 60, 0.5) !important;
        transform: translateY(-1px);
    }

        .btn-glass:hover::before {
            opacity: 1;
        }

    .btn-glass:active {
        transform: translateY(0px);
        box-shadow: 0 2px 10px rgba(160, 110, 60, 0.3) !important;
    }

/* ===== FOOTER TEXT ===== */
.login-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.60);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-top: 20px;
}

/* ===== ERROR / VALIDATION ===== */
.alert-danger {
    background: rgba(220, 60, 60, 0.15) !important;
    border: 1px solid rgba(220, 60, 60, 0.35) !important;
    border-radius: 8px !important;
    color: rgba(255, 180, 180, 0.90) !important;
    font-size: 13px !important;
    padding: 10px 14px !important;
    margin-bottom: 18px;
}

.text-danger {
    color: rgba(255, 160, 160, 0.85) !important;
    font-size: 12px !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .login-wrapper {
        justify-content: center;
        padding-right: 0;
        padding: 16px;
    }

    .glass-card {
        width: 100%;
        max-width: 380px;
        padding: 40px 28px 30px;
    }
}
