/* resources/views/layouts/auth.blade.php */
:root {
            --bg: #f4efe5;
            --bg-2: #efe8d9;
            --panel: rgba(255, 255, 255, 0.94);
            --text: #18221f;
            --muted: #64726c;
            --line: #ddd3c2;
            --brand: #0f766e;
            --danger: #b42318;
            --warn-bg: #fff7e8;
            --warn-line: #f7d69b;
            --warn-text: #9a6700;
            --shadow-soft: 0 18px 45px rgba(51, 38, 11, 0.08);
        }

        * {
            box-sizing: border-box;
        }

        body {
            position: relative;
            margin: 0;
            min-height: 100vh;
            font-family: Arial, sans-serif;
            background:
                linear-gradient(180deg, rgba(17, 24, 39, 0.52) 0%, rgba(24, 34, 31, 0.64) 100%),
                radial-gradient(circle at top left, rgba(255, 247, 237, 0.38) 0, transparent 28%),
                radial-gradient(circle at top right, rgba(219, 234, 254, 0.28) 0, transparent 24%),
                url('/assets/bg.jpg') center center / cover no-repeat fixed;
            color: var(--text);
        }

        .auth-shell {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        .auth-brand {
            position: fixed;
            top: 24px;
            left: 24px;
        }

        .auth-brand img {
            max-width: 180px;
            height: auto;
        }

        .auth-card {
            position: relative;
            width: min(560px, 100%);
            background: var(--panel);
            border: 1px solid rgba(221, 211, 194, 0.82);
            border-radius: 24px;
            padding: 26px;
            box-shadow: 0 26px 60px rgba(12, 18, 17, 0.28);
            backdrop-filter: blur(12px);
        }

        .auth-card-logo {
            position: absolute;
            top: 18px;
            right: 18px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 100px;
            height: 70px;
            pointer-events: none;
        }

        .auth-card-logo img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        h1 {
            margin: 0 0 8px;
            font-size: 28px;
        }

        .lead {
            margin: 0 0 18px;
            color: var(--muted);
        }

        form {
            display: grid;
            gap: 14px;
        }

        label {
            display: block;
            margin-bottom: 6px;
            font-weight: 600;
        }

        input,
        textarea,
        select,
        button {
            font: inherit;
        }

        input,
        textarea,
        select {
            width: 100%;
            border: 1px solid var(--line);
            border-radius: 10px;
            padding: 12px 14px;
            color: var(--text);
            background: #fff;
            transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
        }

        select:not([multiple]):not([size]) {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            padding-right: 42px;
            background-image:
                linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(244, 239, 229, 0.42) 100%),
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.25L7 9.25L11 5.25' stroke='%236f5c37' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat, no-repeat;
            background-position: center, right 14px center;
            background-size: auto, 14px 14px;
            cursor: pointer;
        }

        input:hover,
        textarea:hover,
        select:hover {
            border-color: #cbb89d;
            background-color: #fffdfa;
        }

        input:focus,
        textarea:focus,
        select:focus {
            outline: none;
            border-color: #b89557;
            box-shadow: 0 0 0 4px rgba(184, 149, 87, 0.15);
            background-color: #fffefb;
        }

        button,
        .btn-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 16px;
            border-radius: 999px;
            border: 1px solid var(--line);
            text-decoration: none;
            font-weight: 600;
            cursor: pointer;
            background: linear-gradient(180deg, #fff 0%, #f3ece1 100%);
            color: var(--brand);
            box-shadow: var(--shadow-soft);
        }

        .btn-primary {
            background: var(--brand);
            color: #fff;
            border-color: var(--brand);
        }

        .btn-danger {
            color: var(--danger);
        }

        .actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-top: 6px;
        }

        .note,
        .error-note,
        .warn-note {
            padding: 14px 16px;
            border-radius: 12px;
            margin-bottom: 16px;
            border: 1px solid;
        }

        .flash.success {
            background: #e7f7ec;
            border-color: #bfe7cb;
            color: #166534;
        }

        .flash.warning {
            background: var(--warn-bg);
            border-color: var(--warn-line);
            color: var(--warn-text);
        }

        .flash.info {
            background: #e6f3f1;
            border-color: #99d6ce;
            color: var(--brand);
        }

        .flash.error {
            background: #fff0f0;
            border-color: #f3b4b4;
            color: #b42318;
        }

        .toast-stack {
            position: fixed;
            top: 18px;
            right: 18px;
            display: grid;
            gap: 10px;
            width: min(380px, calc(100vw - 24px));
            z-index: 2400;
            pointer-events: none;
        }

        .flash-toast {
            margin: 0;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            padding: 14px 16px;
            border-radius: 18px;
            border: 1px solid transparent;
            box-shadow: 0 20px 40px rgba(34, 22, 9, 0.18);
            backdrop-filter: blur(10px);
            pointer-events: auto;
            animation: toast-in .24s ease;
        }

        .flash-toast span {
            flex: 1;
            line-height: 1.45;
        }

        .flash-dismiss {
            width: 28px;
            height: 28px;
            min-width: 28px;
            padding: 0;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.72);
            color: inherit;
            font-size: 18px;
            line-height: 1;
            border: 0;
            cursor: pointer;
        }

        .flash-toast.is-leaving {
            opacity: 0;
            transform: translateY(-8px) scale(0.98);
            transition: opacity .2s ease, transform .2s ease;
        }

        @keyframes toast-in {
            from {
                opacity: 0;
                transform: translateY(-10px) scale(0.98);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .note {
            background: #e7f7ec;
            border-color: #bfe7cb;
            color: #166534;
        }

        .error-note {
            background: #fff0f0;
            border-color: #f3b4b4;
            color: #b42318;
        }

        .warn-note {
            background: var(--warn-bg);
            border-color: var(--warn-line);
            color: var(--warn-text);
        }

        .small {
            color: var(--muted);
            font-size: 13px;
            line-height: 1.45;
        }

        @media (max-width: 700px) {
            .auth-brand {
                position: static;
                text-align: center;
                margin-bottom: 20px;
            }

            .auth-shell {
                display: block;
                padding-top: 30px;
            }

            .auth-card {
                margin: 0 auto;
            }
        }
