﻿:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --success: #22c55e;
    --background: #f4f7fb;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #dbe4ee;
    --card: #ffffff;
    --radius: 18px;
    --transition: .25s ease;
    --shadow: 0 20px 60px rgba(15,23,42,.10);
}

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

html,
body {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    font-family: "Inter", "Segoe UI", sans-serif;
    background: var(--background);
}

body {
    color: var(--text);
}

.login-page {
    display: flex;
    width: 100%;
    height: 100vh;
}

/****************************************************/
/******************** PAINEL ESQUERDO ***************/
/****************************************************/

.login-left {
    width: 430px;
    min-width: 430px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    background: linear-gradient( 160deg, #071321 0%, #0b2441 40%, #123b67 100%);
}

.login-background-shape {
    position: absolute;
    border-radius: 50%;
    opacity: .18;
}

.shape-1 {
    width: 320px;
    height: 320px;
    top: -120px;
    right: -120px;
    border: 1px solid rgba(255,255,255,.15);
}

.shape-2 {
    width: 220px;
    height: 220px;
    bottom: -80px;
    left: -80px;
    border: 1px solid rgba(255,255,255,.10);
}

.shape-3 {
    width: 420px;
    height: 420px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    border: 1px solid rgba(255,255,255,.04);
}

.login-brand {
    position: relative;
    z-index: 2;
    width: 100%;
}

.login-logo {
    width: 120px;
    margin-bottom: 30px;
}

.login-brand h1 {
    color: #fff;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
}

    .login-brand h1 span {
        color: #55a7ff;
    }

.login-subtitle {
    margin-top: 10px;
    color: rgba(255,255,255,.70);
    line-height: 28px;
    font-size: 16px;
}

.login-divider {
    width: 80px;
    height: 3px;
    border-radius: 20px;
    background: #3b82f6;
    margin: 40px 0;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(5px);
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #8cc5ff;
    flex-shrink: 0;
}

    .feature-icon i, .feature-icon svg {
        width: 20px;
        height: 20px;
    }

.feature-item strong {
    color: #fff;
    display: block;
    margin-bottom: 5px;
}

.feature-item span {
    color: rgba(255,255,255,.70);
    font-size: 14px;
    line-height: 22px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 15px;
    margin-top: 45px;
}

.stat-card {
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    background: rgba(255,255,255,.05);
}

    .stat-card strong {
        display: block;
        color: #fff;
        font-size: 24px;
        margin-bottom: 6px;
    }

    .stat-card span {
        color: rgba(255,255,255,.70);
        font-size: 13px;
    }

/****************************************************/
/******************* PAINEL DIREITO *****************/
/****************************************************/

.login-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    background: radial-gradient(circle at top right,#dbeafe 0%,transparent 25%), radial-gradient(circle at bottom left,#dcfce7 0%,transparent 25%), #f8fafc;
}

.login-card {
    width: 100%;
    max-width: 470px;
    background: #fff;
    border-radius: 22px;
    padding: 45px;
    box-shadow: var(--shadow);
    border: 1px solid #e5e7eb;
}

.btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login.loading {
    opacity: .85;
    cursor: not-allowed;
}

.input-icon.focused {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.loaded .login-card {
    animation: fadeUp .5s ease;
}

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/****************************************************/
/********************** FORM ************************/
/****************************************************/

.login-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.input-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 0 14px;
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}

    .input-icon i, .input-icon svg {
        width: 17px;
        height: 17px;
        color: var(--text-light);
        flex-shrink: 0;
    }

    .input-icon .form-control {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 12px 4px 12px 12px !important;
        font-size: 14px;
        background: transparent !important;
        box-shadow: none !important;
    }

    #Email.form-control {
        border-radius: 0px 11px 11px 0px !important;
        padding-right: 0px;
    }

        .input-icon .form-control:focus {
            box-shadow: none;
            outline: none;
        }

.toggle-password {
    background: none;
    border: none;
    padding: 4px;
    display: flex;
    align-items: center;
    color: var(--text-light);
    cursor: pointer;
    flex-shrink: 0;
}

    .toggle-password i, .toggle-password svg {
        width: 17px;
        height: 17px;
    }

.forgot-link {
    font-size: 12.5px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

.btn-login {
    width: 100%;
    margin-top: 8px;
    padding: 13px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}

    .btn-login:hover {
        background: var(--primary-dark);
    }

.spin {
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

[asp-validation-summary], .validation-summary-errors {
    font-size: 12.5px;
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .login-left {
        display: none;
    }

    .login-right {
        padding: 24px;
    }

    .login-card {
        padding: 30px 24px;
    }
}
