/* ============================================
   Auth Page — Memphis / Playful Style
   Geometric shapes, candy colors, bold card
   ============================================ */

/* Layout */
.auth-page {
    font-family: 'Trebuchet MS', 'Noto Sans TC', sans-serif;
    color: #2b2b2b;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef9f0;
    position: relative;
    overflow: hidden;
}

/* Floating geometric decorations */
.auth-shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.auth-shape.circle {
    top: 12%;
    left: 8%;
    width: 120px;
    height: 120px;
    border: 4px solid #ff6b6b;
    border-radius: 50%;
    animation: auth-float1 8s ease-in-out infinite;
}

.auth-shape.triangle {
    top: 20%;
    right: 12%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid #4ecdc4;
    opacity: 0.3;
    animation: auth-float2 10s ease-in-out infinite;
}

.auth-shape.cross {
    bottom: 18%;
    left: 15%;
    width: 50px;
    height: 50px;
    opacity: 0.35;
}

.auth-shape.cross::before,
.auth-shape.cross::after {
    content: '';
    position: absolute;
    background: #ffe66d;
}

.auth-shape.cross::before {
    width: 50px;
    height: 12px;
    top: 19px;
    left: 0;
    border-radius: 6px;
}

.auth-shape.cross::after {
    width: 12px;
    height: 50px;
    top: 0;
    left: 19px;
    border-radius: 6px;
}

.auth-shape.dots {
    bottom: 25%;
    right: 10%;
    width: 80px;
    height: 80px;
    background:
        radial-gradient(circle, #ff6b6b 4px, transparent 4px),
        radial-gradient(circle, #ff6b6b 4px, transparent 4px),
        radial-gradient(circle, #ff6b6b 4px, transparent 4px),
        radial-gradient(circle, #ff6b6b 4px, transparent 4px);
    background-position: 10px 10px, 30px 10px, 10px 30px, 30px 30px;
    background-size: 40px 40px;
    background-repeat: no-repeat;
    opacity: 0.25;
    animation: auth-float1 12s ease-in-out infinite reverse;
}

@keyframes auth-float1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes auth-float2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(10px) rotate(-8deg); }
}

/* Card */
.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    padding: 40px 36px;
    background: #fff;
    border: 3px solid #2b2b2b;
    border-radius: 20px;
    box-shadow: 6px 6px 0 #2b2b2b;
    margin: 20px;
}

.auth-emoji {
    font-size: 40px;
    margin-bottom: 8px;
}

.auth-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
}

.auth-title .auth-highlight {
    background: linear-gradient(transparent 60%, #ffe66d 60%);
    padding: 0 4px;
}

.auth-subtitle {
    font-size: 13px;
    color: #888;
    margin-bottom: 32px;
}

/* Form fields */
.auth-field {
    margin-bottom: 20px;
}

.auth-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    margin-bottom: 6px;
}

.auth-field .auth-input-wrap {
    position: relative;
}

.auth-field input[type="text"],
.auth-field input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fef9f0;
    font-family: 'Trebuchet MS', 'Noto Sans TC', sans-serif;
    font-size: 15px;
    color: #2b2b2b;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.auth-field input:focus {
    border-color: #4ecdc4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.15);
}

/* Password eye toggle */
.auth-eye-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    font-size: 16px;
    line-height: 1;
    opacity: 0.4;
    color: #888;
    transition: opacity 0.2s;
}

.auth-eye-toggle:hover {
    opacity: 0.8;
}

/* Remember me checkbox */
.auth-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    cursor: pointer;
}

.auth-remember input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.auth-remember input[type="checkbox"]:checked {
    background: #4ecdc4;
    border-color: #4ecdc4;
}

.auth-remember input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    top: 0;
    left: 3px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.auth-remember span {
    font-size: 13px;
    color: #888;
    user-select: none;
}

/* Submit button */
.auth-btn {
    width: 100%;
    padding: 14px;
    background: #ff6b6b;
    color: #fff;
    border: 2px solid #ff6b6b;
    border-radius: 10px;
    font-family: 'Trebuchet MS', 'Noto Sans TC', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-btn:hover {
    background: #ff5252;
    border-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.35);
}

.auth-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Error message */
.auth-error-msg {
    color: #ef4444;
    font-size: 13px;
    margin-top: 16px;
    text-align: center;
    display: none;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .auth-card {
        padding: 32px 24px;
        margin: 16px;
    }

    .auth-shape.circle {
        width: 60px;
        height: 60px;
        top: 4%;
        left: 2%;
        opacity: 0.5;
    }

    .auth-shape.triangle {
        right: 4%;
        border-left-width: 22px;
        border-right-width: 22px;
        border-bottom-width: 38px;
        opacity: 0.5;
    }

    .auth-shape.cross {
        bottom: 10%;
        left: 4%;
        transform: scale(0.5);
        opacity: 0.5;
    }

    .auth-shape.dots {
        bottom: 12%;
        right: 3%;
        transform: scale(0.5);
        opacity: 0.5;
    }
}
