/* ===============================
   AUTH PAGE
=============================== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: url("../images/ui/banner.png") no-repeat center center;
    background-size: cover;
}

/* ===============================
   AUTH BOX
=============================== */
.auth-box {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    border-radius: 10px;
    background: rgba(255,255,255,0.82);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
}

/* ===============================
   TOGGLE BUTTONS
=============================== */
.form-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.form-toggle button {
    flex: 1;
    padding: 10px;
    border: none;
    background: #ccc;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.form-toggle button.active {
    background: #000;
    color: #fff;
}

/* ===============================
   FORMS
=============================== */
.auth-box form {
    display: flex;
    flex-direction: column;
}

.auth-box form input {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #000;
    border-radius: 6px;
    font-size: 14px;
}

.auth-box form button {
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: #000;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.auth-box form button:hover {
    background: #000;
}

/* ===============================
   ERRORS
=============================== */
.form-error {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #d8000c;
    border-radius: 6px;
    background: #ffdddd;
    color: #d8000c;
    font-size: 14px;
    text-align: center;
}

.auth-layout {
    display: block;
}

.auth-layout .main-content {
    width: 100%;
    max-width: 100%;
}

.auth-container {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid rgba(195, 160, 253, 0.22);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(120, 80, 180, 0.10);
    text-align: center;
}

.auth-box h1 {
    margin-bottom: 6px;
    color: #5a2d82;
}

.auth-subtitle {
    margin-bottom: 18px;
    color: #6f6489;
    font-size: 14px;
}

.form-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.form-toggle button {
    flex: 1;
    border: none;
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    font-weight: 700;
    background: #f1e9ff;
    color: #6b4db5;
}

.form-toggle button.active {
    background: linear-gradient(135deg, #d492fd, #91caff);
    color: #fff;
}

.auth-box form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-box input {
    padding: 11px 12px;
    border: 1px solid #ddd1f6;
    border-radius: 12px;
}

.auth-box button[type="submit"] {
    padding: 11px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #d492fd, #91caff);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.form-error {
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 10px;
    background: #ffe5e5;
    color: #9a2f2f;
    font-size: 13px;
}

.form-success {
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 10px;
    background: #e8f9ea;
    color: #226a2f;
    font-size: 13px;
}

.form-error {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #ffe5e5;
    border: 1px solid #d96b6b;
    color: #9a2f2f;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.auth-page {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 36px 18px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 420px;
    gap: 28px;
    align-items: center;
}

.auth-hero-card,
.auth-box {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(196, 160, 253, 0.35);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(80, 56, 120, 0.12);
}

.auth-hero-card {
    padding: 34px;
}

.auth-kicker {
    font-size: 12px;
    letter-spacing: 1.5px;
    font-weight: 800;
    color: #8f65dc;
}

.auth-hero h1 {
    margin: 8px 0 10px;
    font-size: 42px;
    color: #3e2672;
}

.auth-hero p {
    max-width: 620px;
    color: #5f5875;
    line-height: 1.6;
}

.auth-feature-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.auth-feature-grid div {
    background: linear-gradient(135deg, #f7efff, #eef7ff);
    border: 1px solid #eadcff;
    border-radius: 16px;
    padding: 13px 15px;
    color: #42246f;
    font-weight: 700;
}

.auth-pet-preview {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 20px;
    background: #f8f4ff;
}

.auth-pet-preview img {
    width: 86px;
    height: 86px;
    object-fit: contain;
}

.auth-pet-preview strong {
    display: block;
    color: #3e2672;
}

.auth-pet-preview span {
    display: block;
    margin-top: 4px;
    color: #706984;
    font-size: 14px;
}

.auth-container {
    width: 100%;
}

.auth-box {
    padding: 24px;
}

.form-error,
.form-success {
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 14px;
    font-weight: 700;
    font-size: 14px;
}

.form-error {
    background: #ffe8ef;
    color: #9b2043;
}

.form-success {
    background: #e9fff2;
    color: #267144;
}

.form-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.form-toggle button,
.auth-box button[type="submit"] {
    border: 0;
    border-radius: 13px;
    padding: 12px 14px;
    font-weight: 800;
    cursor: pointer;
}

.form-toggle button {
    background: #f0e7ff;
    color: #5b3c91;
}

.form-toggle button.active,
.auth-box button[type="submit"] {
    background: linear-gradient(135deg, #c77dff, #91caff);
    color: white;
}

.auth-box form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-box input[type="text"],
.auth-box input[type="email"],
.auth-box input[type="password"],
.auth-box input[type="date"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd1ef;
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 14px;
    background: white;
}

.auth-label {
    font-size: 12px;
    font-weight: 800;
    color: #4d3975;
    margin-bottom: -2px;
    opacity: 0.8;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    line-height: 1.4;
    color: #5f5875;
}

.auth-check input {
    margin-top: 0;
}

.auth-note {
    margin: 15px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #7a738c;
    text-align: center;
}

@media (max-width: 900px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-hero h1 {
        font-size: 32px;
    }
}

.auth-container-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(245,245,255,0.92),
            rgba(235,240,255,0.78)
        );
    backdrop-filter: blur(2px);
    background-size: cover;
background-position: center;
opacity: 0.18;
}

.auth-lore {
    font-weight: 600;
    color: #4c3678;
}

.auth-hero-card p {
    font-size: 15px;
    line-height: 1.65;
}

.auth-label {
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: #4d3975;
    margin-bottom: -5px;
}

.auth-label span {
    color: #8f65dc;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    line-height: 1.4;
    color: #5f5875;
}

.auth-check input {
    margin: 0;
}

.auth-note {
    margin: 15px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #7a738c;
    text-align: center;
}

.auth-pet-preview {
    margin-top: 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-radius: 22px;
    background:
        linear-gradient(
            135deg,
            rgba(244,236,255,0.95),
            rgba(238,246,255,0.92)
        );
}

.auth-pet-image-wrap {
    width: 95px;
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-pet-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.35s ease;
    filter: drop-shadow(0 6px 12px rgba(98, 64, 165, 0.18));
}

.auth-pet-info strong {
    display: block;
    font-size: 24px;
    color: #3d236f;
    margin-bottom: 4px;
}

.auth-pet-info span {
    display: block;
    color: #6c6482;
    line-height: 1.5;
}