/* Premium Login CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #1e3a8a;
    --primary-light: #3b82f6;
    --bg-slate: #f1f5f9;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
html {
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-slate);
    color: var(--text-main);
    overflow: hidden;
}

.login-main-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Left Section - Branding */
.login-left-section {
    flex: 1.2;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(30, 58, 138, 0.8)), url('/ERP/images/body.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    color: var(--white);
    position: relative;
}

.branding-content {
    text-align: center;
    max-width: 500px;
    z-index: 2;
}

.branding-logo-icon {
    margin-bottom: 30px;
}

.branding-logo-icon i {
    font-size: 80px;
    opacity: 0.9;
}

.branding-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
    line-height: 1.1;
    text-transform: uppercase;
}

.branding-slogan {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* Right Section - Form */
.login-right-section {
    flex: 0.8;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.form-card {
    width: 100%;
    max-width: 400px;
}

.form-header {
    text-align: center;
    margin-bottom: 10px;
}

.company-logo {
    margin-bottom: 5px;
}

.company-logo img {
    max-height: 80px;
    width: 90%;
}

.welcome-text {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.sub-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    font-size: 1rem;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.input-wrapper input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.forgot-password {
    text-align: right;
    margin-top: -10px;
}

.forgot-password a {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.login-button {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.login-button:hover {
    background-color: #1a365d;
}

.login-button:active {
    transform: scale(0.98);
}

.powered-footer {
    margin-top: 50px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.powered-footer span {
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.powered-footer img {
    max-height: 25px;
    opacity: 0.7;
    filter: grayscale(1);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.powered-footer img:hover {
    opacity: 1;
    filter: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-card {
    animation: fadeIn 0.6s ease-out forwards;
}

.branding-content {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Responsive */
@media (max-width: 992px) {
    .login-left-section {
        display: none;
    }

    .login-right-section {
        flex: 1;
        padding: 20px;
    }
}