/* ===================================
   School Solution - Custom Login Page
   =================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    overflow: hidden;
    height: 100vh;
}

/* Main Container */
.login-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* ===================================
   LEFT PANEL - LOGIN FORM
   =================================== */
.login-left {
    flex: 0 0 45%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.login-form-wrapper {
    width: 100%;
    max-width: 420px;
}

/* Brand Section */
.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #294cf7 0%, #257aba 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.brand-subtitle {
    font-size: 34px;
    font-weight: 600;
    color: #294cf7;
    margin: 0;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 35px;
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a233a;
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 15px;
    color: #6b7280;
    font-weight: 400;
    margin: 0;
}

/* Form Styles */
.login-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1a233a;
    margin-bottom: 8px;
}

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

.input-icon {
    position: absolute;
    left: 16px;
    color: #9ca3af;
    font-size: 16px;
    z-index: 1;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 12px 16px 12px 46px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #1a233a;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #294cf7;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #294cf7;
}

/* Forgot Password */
.forgot-password-wrapper {
    text-align: right;
    margin-bottom: 24px;
}

.forgot-password-link {
    font-size: 13px;
    color: #294cf7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: #357abd;
    text-decoration: underline;
}

/* Login Button */
.btn-login {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #294cf7 0%, #357abd 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

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

/* Footer */
.login-footer {
    margin-top: 30px;
    text-align: center;
}

.login-footer p {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

/* ===================================
   RIGHT PANEL - GRADIENT & ICON
   =================================== */
.login-right {
    flex: 0 0 55%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated gradient background overlay */
.login-right::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    animation: rotate-gradient 20s linear infinite;
}

.login-right::after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 70%
    );
    animation: rotate-gradient 25s linear infinite reverse;
}

@keyframes rotate-gradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.illustration-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px;
}

.system-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.system-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 60px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

/* Icon Container */
.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-icon {
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: pulse-icon 3s ease-in-out infinite;
}

.lock-icon i {
    font-size: 80px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@keyframes pulse-icon {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    }
}

/* Decorative elements */
.login-right .circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.circle-3 {
    width: 80px;
    height: 80px;
    bottom: 15%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-20px);
        opacity: 0.8;
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1200px) {
    .login-left {
        flex: 0 0 50%;
    }

    .login-right {
        flex: 0 0 50%;
    }

    .system-title {
        font-size: 30px;
    }

    .lock-icon {
        width: 150px;
        height: 150px;
    }

    .lock-icon i {
        font-size: 70px;
    }
}

@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }

    .login-left,
    .login-right {
        flex: 0 0 100%;
        width: 100%;
    }

    .login-left {
        height: auto;
        min-height: 100vh;
    }

    .login-right {
        display: none;
    }
}

@media (max-width: 576px) {
    .login-left {
        padding: 20px;
    }

    .login-form-wrapper {
        max-width: 100%;
    }

    .welcome-title {
        font-size: 26px;
    }

    .brand-section {
        margin-bottom: 30px;
    }
}
