/* Contentore CMS - Custom Auth Styles */

:root {
    --contentore-primary: #c3e600;
    --contentore-secondary: #855bfc;
    --contentore-primary-hover: #aac900;
    --contentore-secondary-hover: #6d47d4;
    --contentore-gradient: linear-gradient(
        135deg,
        rgba(195, 230, 0, 0.1) 0%,
        rgba(133, 91, 252, 0.1) 100%
    );
}

/* Enhanced background with brand gradient */
body#kt_body {
    background: linear-gradient(
        135deg,
        #1a1a2e 0%,
        #16213e 50%,
        #0f3460 100%
    ) !important;
    position: relative;
}

body#kt_body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--contentore-gradient);
    pointer-events: none;
}

/* Login card glassmorphism effect */
.auth-card-glass {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

[data-bs-theme="dark"] .auth-card-glass {
    background: rgba(30, 30, 46, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Logo styling */
.contentore-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 2rem;
    animation: fadeInDown 0.6s ease-out;
}

/* Heading styles with brand colors */
.auth-title {
    background: linear-gradient(
        135deg,
        var(--contentore-primary) 0%,
        var(--contentore-secondary) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.auth-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

[data-bs-theme="dark"] .auth-subtitle {
    color: #a1a5b7;
}

/* Form input styling */
.form-control {
    border: 2px solid #e4e6ef;
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--contentore-primary);
    box-shadow: 0 0 0 0.25rem rgba(195, 230, 0, 0.15);
    background-color: #fff;
}

[data-bs-theme="dark"] .form-control {
    border-color: #323248;
    background-color: #1e1e2d;
    color: #fff;
}

[data-bs-theme="dark"] .form-control:focus {
    border-color: var(--contentore-primary);
    background-color: #1e1e2d;
}

/* Primary button with brand color */
.btn-primary,
button.btn-primary,
#kt_sign_in_submit.btn-primary {
    background: var(--contentore-primary) !important;
    border-color: var(--contentore-primary) !important;
    color: #1e1e2d !important;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(195, 230, 0, 0.3);
}

.btn-primary:hover,
.btn-primary:focus,
button.btn-primary:hover,
button.btn-primary:focus,
#kt_sign_in_submit.btn-primary:hover,
#kt_sign_in_submit.btn-primary:focus {
    background: var(--contentore-secondary) !important;
    border-color: var(--contentore-secondary) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(133, 91, 252, 0.4);
}

.btn-primary:active,
button.btn-primary:active,
#kt_sign_in_submit.btn-primary:active {
    transform: translateY(0);
}

/* Links with secondary color */
.link-primary {
    color: var(--contentore-secondary) !important;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.link-primary:hover {
    color: var(--contentore-secondary-hover) !important;
    text-decoration: underline;
}

/* Checkbox styling */
input[type="checkbox"] {
    accent-color: var(--contentore-primary);
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .auth-title {
        font-size: 2rem;
    }

    .contentore-logo {
        max-width: 150px;
    }

    /* Full width on mobile */
    .auth-card-glass {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        min-height: 100vh;
    }

    .flex-column-fluid {
        width: 100% !important;
    }
}

@media (max-width: 575.98px) {
    .auth-title {
        font-size: 1.75rem;
    }

    .contentore-logo {
        max-width: 120px;
    }

    .p-5 {
        padding: 1.5rem !important;
    }
}
