* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #faf3f0;
    position: relative;
    overflow: hidden;
}

.background {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(245, 200, 190, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(235, 180, 170, 0.10) 0%, transparent 60%),
        linear-gradient(135deg, #faf3f0 0%, #f5e8e4 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    pointer-events: none;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: #f5d0c8;
    top: -150px;
    right: -80px;
    animation: floatOrb 20s ease-in-out infinite alternate;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #f0d5d0;
    bottom: -120px;
    left: -80px;
    animation: floatOrb 25s ease-in-out infinite alternate-reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #f5e0da;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatOrb 30s ease-in-out infinite alternate;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -25px) scale(1.1); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(200, 170, 160, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 170, 160, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 40px;
    padding: 28px 24px 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 20px 60px rgba(180, 140, 130, 0.10),
        0 8px 24px rgba(180, 140, 130, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    max-height: 96vh;
    max-height: 96dvh;
    overflow-y: auto;
}

.auth-card::-webkit-scrollbar {
    width: 3px;
}

.auth-card::-webkit-scrollbar-thumb {
    background: #d5b8b0;
    border-radius: 10px;
}

.card-header {
    text-align: center;
    margin-bottom: 20px;
}

.logo-mark {
    width: 44px;
    height: 44px;
    margin: 0 auto 8px;
    background: linear-gradient(135deg, #e7c7bd, #dbb2a6);
    border-radius: 14px;
    position: relative;
    box-shadow: 0 8px 20px rgba(200, 150, 140, 0.18);
}

.logo-mark::after {
    content: '';
    position: absolute;
    inset: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 9px;
}

.logo-mark::before {
    content: '✧';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #7a5a52;
    z-index: 1;
}

.brand-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #5a3a32, #8a6a62);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    font-size: 10px;
    font-weight: 400;
    color: #b08a82;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: 1px;
}

.tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    padding: 4px;
    background: rgba(245, 235, 230, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(235, 210, 200, 0.12);
}

.tab-btn {
    flex: 1;
    padding: 9px 14px;
    border: none;
    background: transparent;
    border-radius: 13px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #a5837b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    color: #5a3a32;
    box-shadow: 0 4px 12px rgba(180, 140, 130, 0.08);
}

.tab-btn:hover:not(.active) {
    color: #7a5a52;
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.auth-form.active {
    display: flex;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 10px;
    font-weight: 600;
    color: #5a423c;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding-left: 4px;
}

.form-group input {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1.5px solid #f0e0da;
    background: rgba(255, 248, 245, 0.5);
    transition: all 0.3s ease;
    color: #2d1e1b;
    outline: none;
    width: 100%;
}

.form-group input::placeholder {
    color: #c9b3ab;
    font-weight: 400;
    font-size: 13px;
}

.form-group input:focus {
    border-color: #dbb6ab;
    background: rgba(255, 248, 245, 0.8);
    box-shadow: 0 0 0 4px rgba(210, 160, 150, 0.06);
}

.form-group.error input {
    border-color: #e8a098;
    background: rgba(255, 220, 210, 0.08);
}

.form-group .error-message {
    font-size: 10px;
    color: #d47a6e;
    min-height: 14px;
    padding-left: 4px;
}

.form-group .input-focus {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #dbb6ab, #e7c7bd);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.form-group.focused .input-focus {
    width: 60%;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #b9998f;
    padding: 4px;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #7a5a52;
}

.toggle-password svg {
    width: 17px;
    height: 17px;
}

.password-hint {
    font-size: 10px;
    color: #b08a82;
    padding-left: 4px;
    margin-top: -2px;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #5a423c;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 15px;
    height: 15px;
    border: 1.5px solid #d5b8b0;
    border-radius: 5px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input:checked + .checkmark {
    background: #dbb6ab;
    border-color: #dbb6ab;
}

.checkbox-label input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #b08a82;
    cursor: pointer;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #7a5a52;
}

.btn-primary {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 20px;
    border-radius: 22px;
    border: none;
    background: linear-gradient(145deg, #e7c7bd, #dbb2a6);
    color: #3d2824;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(200, 150, 140, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    margin-top: 2px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #edd0c6, #dfbdb2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(200, 150, 140, 0.28);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-arrow {
    width: 17px;
    height: 17px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-ghost {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    padding: 12px 20px;
    border-radius: 22px;
    border: 1.5px solid #ecd9d2;
    background: rgba(255, 248, 245, 0.2);
    color: #6d5048;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-ghost:hover {
    background: rgba(235, 210, 200, 0.15);
    border-color: #dbb6ab;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 150, 140, 0.06);
}

.btn-ghost svg {
    width: 17px;
    height: 17px;
}

.btn-ghost:active {
    transform: scale(0.97);
}

.notice-block {
    background: rgba(245, 225, 218, 0.15);
    border-radius: 18px;
    padding: 12px 16px;
    border: 1px solid rgba(235, 210, 200, 0.12);
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.notice-icon {
    width: 15px;
    height: 15px;
    color: #b58378;
}

.notice-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #b58378;
}

.notice-text {
    font-size: 12px;
    line-height: 1.5;
    color: #5a423c;
    font-weight: 400;
}

.notice-text strong {
    color: #b06b5e;
    font-weight: 600;
}

.register-notice {
    background: rgba(200, 220, 210, 0.10);
    border-color: rgba(180, 200, 190, 0.12);
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #ecd9d2, transparent);
}

.divider-label {
    font-size: 9px;
    font-weight: 500;
    color: #b9998f;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-footer {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(235, 210, 200, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #d5b8b0;
    opacity: 0.3;
}

.footer-text {
    font-size: 10px;
    color: #c9b3ab;
    letter-spacing: 0.5px;
    font-weight: 300;
}

.notification {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    animation: slideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 92%;
    width: 440px;
}

@keyframes slideDown {
    0% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.notif-content {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 14px 20px;
    box-shadow: 0 20px 60px rgba(180, 140, 130, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 14px;
}

.notification.success .notif-content {
    border-left: 4px solid #b8a090;
}

.notification.info .notif-content {
    border-left: 4px solid #d5b8b0;
}

.notif-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #7a5a52;
}

.notif-message {
    font-size: 13px;
    color: #3d2c2a;
    flex: 1;
    line-height: 1.5;
}

.notif-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #b9998f;
    transition: color 0.2s;
}

.notif-close:hover {
    color: #6d5048;
}

.notif-close svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 20px 16px 18px;
        border-radius: 32px;
    }
    .brand-title {
        font-size: 20px;
    }
    .logo-mark {
        width: 38px;
        height: 38px;
    }
    .logo-mark::before {
        font-size: 15px;
    }
    .tab-btn {
        font-size: 12px;
        padding: 8px 12px;
    }
    .form-group input {
        font-size: 13px;
        padding: 10px 14px;
        border-radius: 14px;
    }
    .btn-primary {
        font-size: 13px;
        padding: 12px 16px;
    }
    .btn-ghost {
        font-size: 12px;
        padding: 10px 16px;
    }
    .notice-text {
        font-size: 11px;
    }
    .notification {
        top: 12px;
        width: 94%;
    }
    .notif-content {
        padding: 12px 16px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .auth-card {
        padding: 16px 12px 14px;
        border-radius: 28px;
    }
    .brand-title {
        font-size: 18px;
    }
    .form-group input {
        font-size: 12px;
        padding: 8px 12px;
    }
    .tabs {
        gap: 4px;
        padding: 3px;
    }
    .tab-btn {
        font-size: 11px;
        padding: 6px 10px;
    }
}