﻿@font-face {
    font-family: "Material Icons";
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/MaterialIcons-Regular.eot);
    src: local("Material Icons"), local("MaterialIcons-Regular"), url(../fonts/MaterialIcons-Regular.woff2) format("woff2"), url(../fonts/MaterialIcons-Regular.woff) format("woff"), url(../fonts/MaterialIcons-Regular.ttf) format("truetype");
}

@font-face {
    font-family: "CircularStd";
    font-style: normal;
    font-weight: 400;
    src: local("Circular Std Book"), url("../fonts/CircularStd-Book.woff") format("woff");
}

@font-face {
    font-family: "CircularStd";
    font-style: italic;
    font-weight: 400;
    src: local("Circular Std Book Italic"), url("../fonts/CircularStd-BookItalic.woff") format("woff");
}

@font-face {
    font-family: "CircularStd";
    font-style: normal;
    font-weight: 500;
    src: local("Circular Std Medium"), url("../fonts/CircularStd-Medium.woff") format("woff");
}

@font-face {
    font-family: "CircularStd";
    font-style: italic;
    font-weight: 500;
    src: local("Circular Std Medium Italic"), url("../fonts/CircularStd-MediumItalic.woff") format("woff");
}

@font-face {
    font-family: "CircularStd";
    font-style: normal;
    font-weight: 600;
    src: local("Circular Std Bold"), url("../fonts/CircularStd-Bold.woff") format("woff");
}

@font-face {
    font-family: "CircularStd";
    font-style: italic;
    font-weight: 600;
    src: local("Circular Std Bold Italic"), url("../fonts/CircularStd-BoldItalic.woff") format("woff");
}

@font-face {
    font-family: "CircularStd";
    font-style: normal;
    font-weight: 800;
    src: local("Circular Std Black"), url("../fonts/CircularStd-Black.woff") format("woff");
}

@font-face {
    font-family: "CircularStd";
    font-style: italic;
    font-weight: 800;
    src: local("Circular Std Black Italic"), url("../fonts/CircularStd-BlackItalic.woff") format("woff");
}

:root {
    --mainColor: #445096;
    --hoverColor: #5c6ac4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'CircularStd', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    height: 100vh;
    overflow: hidden;
}

.login-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* ===== Brand Section (Left Side - 60%) ===== */
.login-brand-section {
    flex: 0 0 60%;
    background: linear-gradient(135deg, var(--mainColor) 0%, var(--hoverColor) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

    .login-brand-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
    }

    .login-brand-section::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -30%;
        width: 80%;
        height: 80%;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 50%;
    }

.brand-content {
    text-align: center;
    z-index: 1;
    color: white;
}

.brand-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
}

.brand-title {
    font-family: 'CircularStd', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    font-family: 'CircularStd', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: -0.01em;
}

/* ===== Form Section (Right Side - 40%) ===== */
.login-form-section {
    flex: 0 0 40%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.form-wrapper {
    width: 100%;
    max-width: 420px;
}

.form-header {
    margin-bottom: 40px;
}

    .form-header h2 {
        font-family: 'CircularStd', sans-serif;
        font-size: 2rem;
        font-weight: 600;
        color: #2d3436;
        margin-bottom: 8px;
        letter-spacing: -0.02em;
    }

    .form-header p {
        font-family: 'CircularStd', sans-serif;
        font-size: 1rem;
        font-weight: 400;
        color: #636e72;
    }

/* ===== Form Styles ===== */
.login-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 24px;
}

    .form-group label {
        font-family: 'CircularStd', sans-serif;
        display: block;
        font-size: 0.9rem;
        font-weight: 500;
        color: #2d3436;
        margin-bottom: 8px;
    }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #95a5a6;
    font-size: 1rem;
}

.input-wrapper input {
    font-family: 'CircularStd', sans-serif;
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

    .input-wrapper input:focus {
        outline: none;
        border-color: var(--mainColor);
        background: white;
        box-shadow: 0 0 0 3px rgba(68, 80, 150, 0.1);
    }

    .input-wrapper input::placeholder {
        font-family: 'CircularStd', sans-serif;
        font-weight: 400;
        color: #b2bec3;
    }

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

    .toggle-password:hover {
        color: var(--mainColor);
    }

    .toggle-password i {
        font-size: 1rem;
    }

/* ===== Form Options ===== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.remember-me {
    font-family: 'CircularStd', sans-serif;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 400;
    color: #636e72;
}

    .remember-me input {
        margin-right: 8px;
        cursor: pointer;
    }

.forgot-password {
    font-family: 'CircularStd', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--mainColor);
    text-decoration: none;
    transition: color 0.3s ease;
}

    .forgot-password:hover {
        color: var(--hoverColor);
    }

/* ===== Login Button ===== */
.btn-login {
    font-family: 'CircularStd', sans-serif;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--mainColor) 0%, var(--hoverColor) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(68, 80, 150, 0.3);
    letter-spacing: 0.01em;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(68, 80, 150, 0.4);
    }

    .btn-login:active {
        transform: translateY(0);
    }

    .btn-login i {
        transition: transform 0.3s ease;
    }

    .btn-login:hover i {
        transform: translateX(4px);
    }

/* ===== Form Footer ===== */
.form-footer {
    margin-top: 32px;
    text-align: center;
}

    .form-footer p {
        font-family: 'CircularStd', sans-serif;
        font-size: 0.85rem;
        font-weight: 400;
        color: #95a5a6;
    }

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .login-brand-section {
        flex: 0 0 50%;
    }

    .login-form-section {
        flex: 0 0 50%;
    }

    .brand-title {
        font-size: 2rem;
    }

    .brand-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-brand-section {
        flex: 0 0 35%;
        padding: 40px 20px;
    }

    .login-form-section {
        flex: 0 0 65%;
        padding: 20px;
    }

    .brand-logo {
        max-width: 120px;
    }

    .brand-title {
        font-size: 1.5rem;
    }

    .brand-subtitle {
        font-size: 0.9rem;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .login-form {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .login-brand-section {
        flex: 0 0 30%;
    }

    .login-form-section {
        flex: 0 0 70%;
    }

    .brand-title {
        font-size: 1.2rem;
    }

    .brand-subtitle {
        font-size: 0.8rem;
    }
}


/* ===== Login Notifications ===== */
.login-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'CircularStd', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .login-notification.show {
        opacity: 1;
        transform: translateX(0);
    }

    .login-notification.error {
        background: #ff6b6b;
        color: white;
    }

    .login-notification.success {
        background: #51cf66;
        color: white;
    }

    .login-notification i {
        font-size: 1.2rem;
    }

    .login-notification span {
        flex: 1;
    }

/* Loading state for button */
.btn-login:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-login .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .login-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 0.9rem;
    }
}

