﻿.auth-page {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(-70deg, #05204e 0%, #1a2244 100%);
}

/* Decorative shapes */
.auth-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.auth-shape {
    position: absolute;
    border-radius: 50%;
    opacity: .1;
    animation: auth-float 6s ease-in-out infinite;
}

.auth-shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.auth-shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #a8edea, #fed6e3);
    top: 20%;
    right: -100px;
    animation-delay: 2s;
}

.auth-shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #ffecd2, #fcb69f);
    bottom: 10%;
    left: 10%;
    animation-delay: 4s;
}

.auth-wave {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M0,500 Q250,400 500,500 T1000,500 L1000,1000 L0,1000 Z' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E") no-repeat center/cover;
    animation: auth-wave 8s ease-in-out infinite;
}

@keyframes auth-float {

    0%, 100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes auth-wave {

    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-50px);
    }
}

/* Glass card */
.auth-card {
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    z-index: 10;
    max-width: 480px;
    width: 100%;
}

.auth-brand {
    text-align: center;
}

.auth-logo {
    font-family: 'Pacifico', serif;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-tag {
    color: #6b7280;
}

/* Inputs (shared) */
.x-input {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
    transition: all .3s ease;
    outline: none;
}

    .x-input:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, .1);
        transform: translateY(-2px);
    }

    .x-input.error {
        border-color: #ef4444;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, .1);
    }

.x-error {
    color: #ef4444;
    font-size: .75rem;
    margin-top: .25rem;
    display: none;
}

/* Checkbox (shared) */
.x-check {
    position: relative;
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: .75rem;
    flex-shrink: 0;
}

    .x-check input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.x-mark {
    position: absolute;
    inset: 0;
    background: #fff;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    transition: all .3s ease;
}

.x-check:hover input ~ .x-mark {
    border-color: #667eea;
}

.x-check input:checked ~ .x-mark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.x-mark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.x-check input:checked ~ .x-mark:after {
    display: block;
}

.x-checklabel {
    color: #6b7280;
}

/* Buttons (shared) */
.x-btn {
    background: linear-gradient(to right, #313852, #417bdd);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-weight: 600;
    transition: all .3s ease;
    outline: none;
    border: 2px solid #162246;
}
.welcome-heading {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-top: 15px;
}
.buu-plus {
    background: none;
    border: 2px solid #162246;
    color: #162246;
}
    .buu-plus:hover {
        background: linear-gradient(to right, #313852, #417bdd);
        color:#fff;
    }

    .x-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(102, 126, 234, .3);
    }

    .x-btn:active {
        transform: translateY(0);
    }

    .x-btn[disabled] {
        opacity: .6;
        cursor: not-allowed;
        transform: none;
    }

/* Links */
.x-link {
    color: #667eea;
    text-decoration: none;
    transition: all .3s ease;
}

    .x-link:hover {
        color: #764ba2;
        text-decoration: underline;
    }

.x-dot {
    color: #d1d5db;
}

/* Password strength (register) */
.x-strength {
    margin-top: .5rem;
}

.x-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: .5rem;
}

.x-fill {
    height: 100%;
    border-radius: 2px;
    transition: all .3s ease;
}

.x-stext {
    font-size: .75rem;
    color: #6b7280;
}

.register-auth-card {
    max-width: 38%;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-logo {
        font-size: 2rem;
    }

    .register-auth-card {
        max-width: 100%;
    }

    .auth-shape-1,
    .auth-shape-2,
    .auth-shape-3 {
        display: none;
    }

    .auth-card {
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .auth-logo {
        font-size: 1.75rem;
    }

    .x-input,
    .x-btn {
        padding: .875rem;
    }
}
