﻿:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg: #f4f7fb;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --radius: 22px;
    --shadow: 0 20px 60px rgba(15, 23, 42, .12);
}

* {
    box-sizing: border-box;
    font-family: 'Jost', sans-serif;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #eef4ff, #f8fafc);
    color: var(--text);
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
}

.logo-text b {
    display: block;
    font-size: 20px;
}

.logo-text span {
    color: var(--muted);
    font-size: 13px;
}

h1 {
    margin: 0 0 8px;
    font-size: 26px;
}

p {
    margin: 0 0 24px;
    color: var(--muted);
}

.form-group {
    margin-bottom: 14px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    height: 50px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 15px;
    font-size: 15px;
    outline: none;
}

    .form-control:focus {
        border-color: var(--primary);
    }

.btn-main {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 15px;
    background: var(--primary);
    color: white;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
}

    .btn-main:hover {
        background: var(--primary-dark);
    }

.auth-footer {
    margin-top: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

    .auth-footer a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 800;
    }

@media(max-width:520px) {
    .auth-card {
        padding: 22px;
        border-radius: 18px;
    }

    h1 {
        font-size: 23px;
    }
}

.pn-toast-container {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 99999;
}

.pn-toast {
    min-width: 260px;
    padding: 15px 18px;
    border-radius: 14px;
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
    transform: translateX(120%);
    opacity: 0;
    animation: pnSlideIn .4s ease forwards;
}

    .pn-toast.success {
        background: linear-gradient(135deg, #15c66b, #00e08a);
    }

    .pn-toast.error {
        background: linear-gradient(135deg, #ff4d4d, #e60023);
    }

@keyframes pnSlideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pnSlideOut {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}


.remember-row {
    margin-top: 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.remember-box {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}

    .remember-box input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #1288ff;
        cursor: pointer;
    }

.forgot-link {
    font-size: 13px;
    font-weight: 700;
    color: #1288ff;
    text-decoration: none;
    transition: .18s ease;
}

    .forgot-link:hover {
        opacity: .75;
    }

body.dark .remember-box {
    color: #cbd5e1;
}

body.dark .forgot-link {
    color: #5da8ff;
}

.field-desc {
    margin-bottom: 10px;
    font-size: 2px;
    line-height: 1.5;
    color: #64748b;
    font-weight: 500;
}

body.dark .field-desc {
    color: #94a3b8;
}
