/* v1 2026-02-26 - ConvivioOS System Auth - Liquid Glass Design Tokenized */

/* === ANIMATED BACKGROUND === */
.sn-body-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--sn-bg-body);
    z-index: 1;
}

.sn-body-auth::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 80%, color-mix(in srgb, var(--sn-color-primary) 15%, transparent) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--sn-color-primary) 20%, transparent) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--sn-color-secondary) 15%, transparent) 0%, transparent 50%);
    animation: authFloat 20s ease-in-out infinite;
}

/* === GEOMETRIC SHAPES === */
.sn-body-auth::after {
    content: '';
    position: fixed;
    top: -50px;
    left: -80px;
    width: 0;
    height: 0;
    border-left: 200px solid transparent;
    border-right: 0px solid transparent;
    border-bottom: 300px solid color-mix(in srgb, var(--sn-color-surface) 25%, transparent);
    transform: rotate(-15deg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: authFloatShape 25s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

.geometric-shape {
    content: '';
    position: fixed;
    bottom: -120px;
    left: -100px;
    width: 250px;
    height: 250px;
    background: color-mix(in srgb, var(--sn-color-surface) 20%, transparent);
    border-radius: 40px;
    transform: rotate(25deg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    animation: authFloatShapeSquare 30s ease-in-out infinite reverse;
    z-index: -1;
    pointer-events: none;
}

@keyframes authFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(1deg);
    }

    66% {
        transform: translateY(20px) rotate(-1deg);
    }
}

@keyframes authFloatShape {

    0%,
    100% {
        transform: translateY(0px) translateX(0px) rotate(-15deg);
    }

    25% {
        transform: translateY(-15px) translateX(10px) rotate(-12deg);
    }

    50% {
        transform: translateY(10px) translateX(-5px) rotate(-18deg);
    }

    75% {
        transform: translateY(-8px) translateX(8px) rotate(-14deg);
    }
}

@keyframes authFloatShapeSquare {

    0%,
    100% {
        transform: translateY(0px) translateX(0px) rotate(25deg);
    }

    25% {
        transform: translateY(12px) translateX(-8px) rotate(28deg);
    }

    50% {
        transform: translateY(-10px) translateX(5px) rotate(22deg);
    }

    75% {
        transform: translateY(8px) translateX(-12px) rotate(27deg);
    }
}

/* === LOGIN PAGE CONTAINER === */
.login-page-container {
    width: 100%;
    max-width: 450px;
    margin: 2rem auto;
    position: relative;
    z-index: 10;
}

.login-container {
    background: color-mix(in srgb, var(--sn-color-surface) 85%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid color-mix(in srgb, var(--sn-color-border) 40%, transparent);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: color-mix(in srgb, var(--sn-color-primary) 30%, transparent);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

.login-container h1,
.login-container h3 {
    text-align: center;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--sn-text-body);
    font-size: 2rem;
}

.login-container hr {
    border-color: var(--sn-color-border);
    opacity: 0.5;
    margin-block: 1.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--sn-text-body);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid var(--sn-color-border);
    border-radius: var(--sn-radius-md);
    font-size: 1rem;
    background: var(--sn-color-surface);
    color: var(--sn-text-body);
    transition: all 0.25s ease;
}

.form-control::placeholder {
    color: var(--sn-text-muted);
}

.form-control:focus {
    outline: none;
    border-color: var(--sn-color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--sn-color-primary) 20%, transparent);
}

/* Checkbox Styles */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 4px;
    border: 1px solid var(--sn-color-border);
    cursor: pointer;
}

.form-check-label {
    font-size: 0.95rem;
    color: var(--sn-text-body);
    cursor: pointer;
}

/* Button Styles */
.btn-login {
    width: 100%;
    padding: 1rem 2rem;
    border-radius: var(--sn-radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1rem;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--sn-color-primary) 30%, transparent);
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--sn-color-primary) 40%, transparent);
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid #dc3545;
    color: #dc3545;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: white;
}

/* Alert Styles */
.alert {
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: rgba(52, 199, 89, 0.1);
    color: #28a745;
    border: 1px solid rgba(52, 199, 89, 0.2);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.alert-info {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.btn-link,
.login-container a {
    color: var(--sn-color-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.5rem;
}

.login-container a:hover {
    text-decoration: underline;
}

.d-grid {
    display: grid;
    gap: 0.5rem;
}

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

@media (max-width: 576px) {
    .login-container {
        padding: 2rem;
        border-radius: 16px;
    }
}