/* Google Font Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    /* Soft light Red, Blue, Green animated fade background */
    background-color: #dceaff !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    position: relative;
    overflow-x: hidden;
    color: #1F2937;
}

/* Background decor wrapper to prevent scrolling caused by absolute shapes */
.background-decor-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

/* Background soft decorative shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.65;
}

.bg-shape-1 {
    width: 450px;
    height: 450px;
    top: -100px;
    left: -100px;
    background-color: rgba(79, 124, 255, 0.15); /* Accent Blue */
    animation: driftShape1 20s ease-in-out infinite alternate;
}

.bg-shape-2 {
    width: 550px;
    height: 550px;
    bottom: -150px;
    right: -150px;
    background-color: rgba(108, 99, 255, 0.12); /* Accent Purple */
    animation: driftShape2 25s ease-in-out infinite alternate;
}

/* Layout Wrapper */
.login-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-grow: 1;
    z-index: 1;
    position: relative;
}

/* Split Card Container */
.login-card {
    display: flex;
    width: 1050px;
    max-width: 100%;
    min-height: 530px;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    margin-bottom: 12px;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.login-card:hover {
    box-shadow: 0 32px 72px rgba(31, 41, 55, 0.08);
}

/* Left Column - Branding split */
.brand-side {
    flex: 1.1;
    background: #EEF3FF;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    border-right: 1px solid #E6EBF5;
    overflow: hidden;
}

/* Vector dotted grids overlay in brand side */
.brand-decor-dots {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(rgba(79, 124, 255, 0.2) 1.5px, transparent 1.5px);
    background-size: 10px 10px;
    opacity: 0.6;
}

.brand-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.brand-header-panel {
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-logo-img {
    max-height: 80px;
    width: auto;
    margin-bottom: 5px;
    filter: drop-shadow(0 6px 12px rgba(79, 124, 255, 0.06));
}

.brand-title {
    font-size: 26px;
    font-weight: 700;
    color: #1F2937;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.brand-subtitle {
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
}

.brand-divider {
    width: 100px;
    height: 3px;
    background-color: #4F7CFF; /* Accent Blue */
    border-radius: 1.5px;
    margin-top: 5px;
}

/* Campus Illustration Container */
.campus-illustration-container {
    position: relative;
    width: 100%;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.campus-img {
    max-width: 100%;
    max-height: 330px !important;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(79, 124, 255, 0.09));
    transition: transform 0.5s ease;
}

.campus-img:hover {
    transform: scale(1.02);
}

/* Right Column - Form side */
.form-side {
    flex: 1;
    padding: 30px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
}

/* Heading section */
.form-header {
    margin-bottom: 20px;
    text-align: center;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.form-subtitle {
    font-size: 14px;
    color: #6B7280;
    font-weight: 400;
}

.form-divider-bar {
    width: 60px;
    height: 3px;
    background-color: #4F7CFF; /* Accent Blue */
    border-radius: 1.5px;
    margin: 15px auto 0 auto;
}

/* Form input container fields */
.input-container {
    margin-bottom: 14px;
    width: 100%;
    text-align: left;
}

.input-group-custom {
    position: relative;
    width: 100%;
}

/* Circular Input Left Icon Badge */
.input-icon-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #EEF3FF; /* Secondary surface */
    color: #4F7CFF; /* Accent Blue */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    z-index: 5;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-group-custom:focus-within .input-icon-left {
    transform: translateY(-50%) scale(1.08);
    background-color: #4F7CFF;
    color: #ffffff;
}

.input-field-custom {
    display: block !important;
    width: 100% !important;
    height: 54px !important;
    line-height: 54px !important;
    padding: 0 45px 0 58px !important;
    border-radius: 14px !important;
    border: 1px solid #E6EBF5 !important;
    background-color: #ffffff !important;
    color: #1F2937 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 400 !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease;
}

.input-field-custom::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
    opacity: 0.85 !important;
}

.input-field-custom:hover {
    border-color: #cbd5e1 !important;
}

.input-field-custom:focus {
    border-color: #4F7CFF !important;
    box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.1) !important;
}

/* Password Toggle Eye Icon */
.password-toggle-container {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    font-size: 15px;
    transition: color 0.2s ease;
    z-index: 5;
}

.password-toggle-container:hover {
    color: #4F7CFF;
}

/* Error states */
.has-error-custom .input-field-custom {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.has-error-custom .input-field-custom:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08) !important;
}

.error-text-custom {
    font-size: 12px;
    color: #ef4444;
    margin-top: 6px;
    margin-left: 12px;
    font-weight: 500;
    display: block;
}

.session-alert-custom {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #ef4444;
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-alert-custom .close {
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    color: #ef4444;
    opacity: 0.7;
    background: transparent;
    border: none;
    line-height: 1;
}

.session-alert-custom .close:hover {
    opacity: 1;
}

/* Remember me & Forgot Password */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 18px;
    font-size: 13.5px;
}

.checkbox-custom {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #6B7280; /* Secondary text */
    user-select: none;
    font-weight: 500;
}

.checkbox-custom input {
    display: none;
}

.checkbox-icon {
    width: 18px;
    height: 18px;
    border: 1.5px solid #E6EBF5; /* Border color */
    border-radius: 5px;
    margin-right: 8px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.checkbox-custom input:checked + .checkbox-icon {
    background-color: #4F7CFF; /* Accent Blue */
    border-color: #4F7CFF;
}

.checkbox-custom input:checked + .checkbox-icon::after {
    content: '\f00c';
    font-family: 'FontAwesome';
    color: white;
    font-size: 9px;
}

.checkbox-custom:hover .checkbox-icon {
    border-color: #4F7CFF;
}

.forgot-password-link {
    color: #4F7CFF; /* Accent Blue */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: #6C63FF; /* Accent Purple */
    text-decoration: underline;
}

/* Pill Submit Gradient Button */
.btn-submit-gradient {
    width: 100%;
    height: 54px;
    border-radius: 27px;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1.5px;
    cursor: pointer;
    /* SaaS Blue-to-Purple gradient */
    background: linear-gradient(90deg, #4F7CFF 0%, #6C63FF 50%, #4F7CFF 100%) !important;
    background-size: 200% auto !important;
    box-shadow: 0 6px 20px rgba(79, 124, 255, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
    animation: buttonPulseGlow 3s infinite ease-in-out;
}

.btn-submit-gradient:hover {
    background-position: right center !important;
    transform: translateY(-2px); /* Lift effect */
    opacity: 0.98;
    animation: buttonPulseGlow 1.5s infinite ease-in-out;
}

.btn-submit-gradient:active {
    transform: translateY(1px);
}

/* OR continue with Divider */
.divider-or {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
}

.divider-line {
    width: 80px;
    height: 1px;
    background-color: #4a6ed5; /* Border color */
}

.divider-text {
    padding: 0 6px;
    color: #6B7280; /* Secondary text */
    font-size: 11px;
    font-weight: 600;
    text-transform: lowercase;
}

/* Circular alternative login buttons */
.social-logins {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #E6EBF5; /* Border color */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 124, 255, 0.08);
    border-color: #4F7CFF;
}

.social-btn i {
    font-size: 18px;
}

/* Secure Data Info */
.secure-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 12.5px;
    margin-top: 15px;
    font-weight: 500;
}

.secure-info i {
    color: #3b82f6;
    font-size: 14px;
}

/* Global Footer */
.footer-branding {
    width: 100%;
    max-width: 1050px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    z-index: 1;
}

.footer-text {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-powered {
    font-weight: 500;
}

.footer-briny {
    color: #0c82e9;
    font-weight: 700;
}

.footer-tech {
    color: #10b981;
    font-weight: 700;
}

.footer-reg {
    font-size: 8px;
    vertical-align: super;
}

.footer-copyright {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
}

/* Responsive Mobile Layout */
@media (max-width: 900px) {
    .login-card {
        flex-direction: column;
        width: 480px;
        min-height: auto;
        border-radius: 24px;
    }
    
    .brand-side {
        padding: 45px 30px;
        border-right: none;
        border-bottom: 1px solid #cbd5e1;
    }
    
    .campus-illustration-container {
        display: none;
    }
    
    .form-side {
        padding: 40px 30px;
    }
}

@media (max-width: 520px) {
    body {
        padding: 15px 10px;
    }
    
    .login-card {
        width: 100%;
        border-radius: 20px;
    }
    
    .brand-side {
        padding: 30px 15px;
    }
    
    .brand-logo-img {
        max-height: 60px;
    }
    
    .brand-title {
        font-size: 22px;
    }
    
    .form-side {
        padding: 30px 20px;
    }
    
    .form-title {
        font-size: 22px;
    }
    
    .input-field-custom {
        height: 48px !important;
        line-height: 48px !important;
        padding: 0 40px 0 48px !important;
        font-size: 13.5px !important;
    }
    
    .input-icon-left {
        left: 10px;
        width: 28px;
        height: 28px;
    }
    
    .password-toggle-container {
        right: 16px;
    }
    
    .form-options {
        font-size: 12px;
    }
    
    .btn-submit-gradient {
        height: 48px;
    }
}

/* ==========================================================================
   Page Entrance Animations (Staggered Fade-in)
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Base states before animations trigger */
.login-card {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.brand-header-panel {
    opacity: 0;
    animation: fadeInLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.campus-illustration-container {
    opacity: 0;
    animation: fadeInLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

.form-side .form-header {
    opacity: 0;
    animation: fadeInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.form-side .input-container:nth-of-type(1) {
    opacity: 0;
    animation: fadeInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.form-side .input-container:nth-of-type(2) {
    opacity: 0;
    animation: fadeInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.form-side .form-options {
    opacity: 0;
    animation: fadeInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.form-side .btn-submit-gradient {
    opacity: 0;
    animation: fadeInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.form-side .divider-or {
    opacity: 0;
    animation: fadeInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.form-side .social-logins {
    opacity: 0;
    animation: fadeInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.form-side .secure-info {
    opacity: 0;
    animation: fadeInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
}

.footer-branding {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.95s forwards;
}

@keyframes driftShape1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(60px, -40px) scale(1.1);
    }
}

@keyframes driftShape2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-60px, 40px) scale(0.95);
    }
}


/* ==========================================================================
   Submit Button Pulse Glow Keyframes
   ========================================================================== */
@keyframes buttonPulseGlow {
    0% {
        box-shadow: 0 6px 20px rgba(79, 124, 255, 0.22), 0 0 0 0 rgba(79, 124, 255, 0.25);
    }
    70% {
        box-shadow: 0 8px 24px rgba(79, 124, 255, 0.32), 0 0 0 8px rgba(79, 124, 255, 0);
    }
    100% {
        box-shadow: 0 6px 20px rgba(79, 124, 255, 0.22), 0 0 0 0 rgba(79, 124, 255, 0);
    }
}




