﻿:root {
    --bg: #f3f6fb;
    --bg-accent: #e8f0fe;
    --text: #1f2937;
    --muted: #6b7280;
    --primary: #4f46e5; /* Indigo */
    --primary-600: #4338ca;
    --success: #16a34a;
    --error: #e11d48; /* Rose */
    --info: #0ea5e9; /* Sky */
    --surface: #ffffff;
    --ring: #93c5fd;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(2,12,27,.08), 0 1px 2px rgba(2,12,27,.06);
}

#body1 {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    overflow: hidden
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

    body.login-body {
        margin: 0;
        font-family: "Open Sans",system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
        color: var(--text);
        background: radial-gradient(1200px 600px at 10% -20%, #e0ffe8 0, transparent 60%), radial-gradient(1200px 600px at 110% 120%, #e6ecff 0, transparent 60%), var(--bg);
    }

.login-wrapper {
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

.login-header {
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.login-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.login-form {
    margin-top: 8px;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-with-icon > i {
        position: absolute;
        left: 12px;
        color: #9aa4b2;
        pointer-events: none;
    }

.form-control {
    width: 100%;
    padding: 12px 14px 12px 38px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    transition: border .15s ease, box-shadow .15s ease, background .15s ease;
}

    .form-control::placeholder {
        color: #9aa4b2;
    }

    .form-control:focus {
        outline: 0;
        border-color: #93c5fd;
        box-shadow: 0 0 0 3px rgba(147,197,253,.35);
    }

.toggle-password {
    position: absolute;
    right: 8px;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px;
}

    .toggle-password:hover {
        background: #f3f4f6;
    }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .04s ease, box-shadow .2s ease, background .2s ease;
    text-decoration: none;
    user-select: none;
}

    .btn:active {
        transform: translateY(1px);
    }

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 12px 16px;
    box-shadow: 0 6px 16px rgba(79,70,229,.18);
}

    .btn-primary:hover {
        background: var(--primary-600);
    }

    .btn-primary.is-loading {
        opacity: .7;
        cursor: wait;
    }

.login-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.forgot-link {
    color: var(--muted);
    font-weight: 600;
    text-decoration: none;
}

    .forgot-link:hover {
        color: var(--primary);
    }

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 14px;
    color: var(--muted);
    font-size: 12px;
}

    .divider::before,
    .divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #e5e7eb;
    }

.provider-buttons {
    display: grid;
    gap: 10px;
}

.btn-provider {
    padding: 10px 14px;
    color: #fff;
    font-size: 14px;
    letter-spacing: .2px;
}

    .btn-provider i {
        width: 18px;
        text-align: center;
    }

#btnLogin {
    background: black;
}

    #btnLogin:hover {
        background: #c0f010;
    }

    .btn-provider.google {
        background: #ea4335;
    }

        .btn-provider.google:hover {
            background: #c63b2f;
        }

    .btn-provider.microsoft {
        background: #2f2f2f;
    }

        .btn-provider.microsoft:hover {
            background: #242424;
        }

    .btn-provider.openid {
        background: #0b6efd;
    }

        .btn-provider.openid:hover {
            background: #0a58ca;
        }

.alert {
    border-radius: 10px;
    padding: 12px 14px;
    margin: 6px 0 12px;
    font-size: 14px;
}

    .alert.error {
        background: #ffe4ea;
        color: #7f1d1d;
        border: 1px solid #fecdd3;
    }

    .alert.info {
        background: #e0f2fe;
        color: #0c4a6e;
        border: 1px solid #bae6fd;
    }

.login-legal {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
}

    .login-legal a {
        color: inherit;
        text-decoration: underline;
    }

.login-header {
    text-align: center;
    margin-bottom: 10px;
}

    .login-header .login-title {
        font-size: 1.8rem;
        font-weight: bold;
        margin: 0;
    }

.login-card > p {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    color: #555;
}

.login-card > p > small {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    color: #555;
}