/* === Registration & Login Page Styling === */
.spu-auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    padding: 20px;
    background: none;
}

.spu-auth-card {
    background: #1c1c1e;
    padding: 40px;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    color: #fff;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.spu-auth-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.spu-auth-subtitle {
    font-size: 0.95rem;
    margin-bottom: 25px;
    color: #ccc;
}

.spu-field {
    margin-bottom: 20px;
    position: relative;
}

.spu-field.floating input {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #2a2a2d;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.spu-field.floating label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
    transition: 0.3s ease;
}

.spu-field.floating input:focus,
.spu-field.floating input:not(:placeholder-shown) {
    border-color: #71b280;
}

.spu-field.floating input:focus + label,
.spu-field.floating input:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 0.75rem;
    color: #71b280;
    background: #1c1c1e;
    padding: 0 4px;
    border-radius: 4px;
}

.spu-btn {
    width: 100%;
    background: linear-gradient(90deg, #134e5e, #71b280);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spu-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.spu-auth-footer {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #bbb;
}

.spu-auth-footer a {
    color: #71b280;
    text-decoration: none;
    font-weight: 600;
}

/* === Toast Notifications === */
.twokya-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 260px;
    max-width: 340px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    z-index: 9999;
    animation: toast-in 0.5s forwards, toast-out 0.5s forwards 3s;
}

/* Success & Error Variants */
.twokya-toast.success {
    background: linear-gradient(90deg, #1e8e3e, #34a853);
}
.twokya-toast.error {
    background: linear-gradient(90deg, #b00020, #d93025);
}

/* === Toast Animations === */
@keyframes toast-in {
    to {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}
@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
    }
}

/* === Mobile-Friendly Adjustments === */
@media (max-width: 480px) {
    .twokya-toast {
        left: 50%;
        right: auto;
        top: auto;
        bottom: 20px;
        transform: translateX(-50%) translateY(20px);
        width: 90%;
        max-width: 320px;
        text-align: center;
    }
    @keyframes toast-in {
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
            pointer-events: auto;
        }
    }
    @keyframes toast-out {
        to {
            opacity: 0;
            transform: translateX(-50%) translateY(20px);
            pointer-events: none;
        }
    }
}


/* === Loading Spinner === */
.spu-spinner {
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    display: inline-block;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}
