/* File: assets/css/admin_login.css
   Advanced responsive design for Admin Login page
   - Optimized for desktop, tablet, and mobile
   - No external libraries, pure CSS
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    background: radial-gradient(circle at top left, #4f46e5 0, #111827 45%, #020617 100%);
    color: #e5e7eb;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout wrapper */
.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 24px 16px;
}

.auth-panel {
    width: 100%;
    max-width: 960px;
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.5), rgba(15, 23, 42, 0.98));
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(148, 163, 184, 0.15);
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
}

/* Left side: brand / illustration */
.auth-hero {
    position: relative;
    padding: 32px 32px 32px 32px;
    background: radial-gradient(circle at top, rgba(96, 165, 250, 0.14), transparent 60%);
    border-right: 1px solid rgba(148, 163, 184, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.04em;
}

.auth-logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: conic-gradient(from 160deg, #22d3ee, #4f46e5, #f97316, #22d3ee);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9);
}

.auth-logo-mark span {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.auth-hero-main {
    margin-top: 40px;
}

.auth-hero-title {
    font-size: clamp(26px, 3vw, 32px);
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-hero-subtitle {
    font-size: 14px;
    max-width: 380px;
    color: #9ca3af;
}

.auth-hero-meta {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #9ca3af;
}

.auth-pill {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.7);
}

.auth-hero-footer {
    margin-top: 40px;
    font-size: 11px;
    color: #6b7280;
}

/* Right side: form */
.auth-form-wrap {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.98));
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header {
    margin-bottom: 20px;
}

.auth-header h1 {
    margin: 0 0 4px;
    font-size: 22px;
}

.auth-header p {
    margin: 0;
    color: #9ca3af;
    font-size: 13px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 13px;
    color: #d1d5db;
}

.form-label span {
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.7);
    color: #e5e7eb;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.05s ease;
}

.form-control::placeholder {
    color: #6b7280;
}

.form-control:focus {
    border-color: #38bdf8;
    background: rgba(15, 23, 42, 0.92);
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.5),
        0 0 0 8px rgba(56, 189, 248, 0.07);
    transform: translateY(-0.5px);
}

.alert {
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
}

.alert-error {
    background: rgba(248, 113, 113, 0.08);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.6);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.08s ease, box-shadow 0.12s ease, filter 0.12s ease, background 0.12s ease;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ecfdf5;
    box-shadow: 0 14px 30px rgba(22, 163, 74, 0.45);
}

.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.4);
}

.auth-meta-row {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
}

.auth-footer {
    margin-top: 22px;
    font-size: 11px;
    color: #4b5563;
    text-align: center;
}

.auth-footer span {
    color: #9ca3af;
}

.remember-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.remember-wrap input[type="checkbox"] {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.8);
}

/* Small decorative blur elements */
.blur-dot {
    position: absolute;
    border-radius: 999px;
    filter: blur(32px);
    opacity: 0.85;
    pointer-events: none;
}

.blur-dot.dot-1 {
    width: 140px;
    height: 140px;
    background: rgba(59, 130, 246, 0.65);
    top: 18%;
    right: 8%;
}

.blur-dot.dot-2 {
    width: 120px;
    height: 120px;
    background: rgba(14, 165, 233, 0.8);
    bottom: 6%;
    left: 0%;
}

.blur-dot.dot-3 {
    width: 100px;
    height: 100px;
    background: rgba(34, 197, 94, 0.7);
    top: 58%;
    right: 32%;
}

/* Responsive behavior */
@media (max-width: 900px) {
    .auth-panel {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .auth-shell {
        padding: 16px;
    }

    .auth-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-hero {
        display: none;
    }

    .auth-form-wrap {
        padding: 24px 20px 20px;
    }
}

@media (max-width: 480px) {
    .auth-shell {
        padding: 12px;
    }

    .auth-panel {
        border-radius: 18px;
    }

    .auth-form-wrap {
        padding: 20px 16px 18px;
    }

    .auth-header h1 {
        font-size: 20px;
    }

    .auth-header p {
        font-size: 12px;
    }
}


