:root {
    /* Light Theme (default) */
    --primary-color: #4361ee;
    --primary-hover: #3a56d4;
    --secondary-color: #7209b7;
    --accent-color: #f72585;
    --text-color: #333;
    --background-color: #f8f9fa;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --input-border: #dbe0e5;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --muted-text: #6c757d;
    --success-color: #0cce6b;
    --danger-color: #e5383b;
}

[data-theme="dark"] {
    --primary-color: #4361ee;
    --primary-hover: #5a72f0;
    --secondary-color: #b5179e;
    --accent-color: #f72585;
    --text-color: #f8f9fa;
    --background-color: #121212;
    --card-bg: #1e1e1e;
    --input-bg: #2d2d2d;
    --input-border: #444;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --muted-text: #adb5bd;
    --success-color: #1dce76;
    --danger-color: #f94144;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    overflow-x: hidden;
}

.theme-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.theme-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 80%);
    z-index: 0;
}

/* Background Animation Elements */
.bg-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.15;
    z-index: 0;
    mix-blend-mode: screen;
}

.bg-element-1 {
    top: 10%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at 30% 30%, rgba(147, 112, 219, 0.7), rgba(72, 61, 139, 0.3));
    animation: float 22s ease-in-out infinite alternate;
}

.bg-element-2 {
    bottom: 5%;
    right: 5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle at 70% 70%, rgba(138, 43, 226, 0.7), rgba(75, 0, 130, 0.3));
    animation: float 28s ease-in-out infinite alternate-reverse;
}

.bg-element-3 {
    top: 40%;
    right: 15%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at 50% 50%, rgba(186, 85, 211, 0.6), rgba(106, 90, 205, 0.2));
    animation: float 18s ease-in-out infinite alternate;
}

.bg-element-4 {
    bottom: 35%;
    left: 15%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle at 50% 50%, rgba(123, 104, 238, 0.6), rgba(25, 25, 112, 0.2));
    animation: float 25s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) translateX(15px) rotate(5deg);
    }
    100% {
        transform: translateY(20px) translateX(-15px) rotate(-5deg);
    }
}

.content-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    padding: 1rem;
}

/* Company Logo */
.company-logo {
    margin-bottom: 2rem !important;
}

.company-logo img {
    max-height: 90px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    transition: all 0.5s ease;
    transform: translateY(0);
    animation: logoFloat 3s ease-in-out infinite alternate;
}

@keyframes logoFloat {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10px);
    }
}

.company-logo img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

/* Theme Toggle */
.theme-toggle .btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle .btn:hover {
    transform: rotate(30deg);
    background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .theme-icon-light {
    display: block;
}

[data-theme="dark"] .theme-icon-dark {
    display: none;
}

.theme-icon-light {
    display: none;
    color: #f8f9fa;
}

.theme-icon-dark {
    display: block;
    color: #f8f9fa;
}

/* Language Selector */
.language-selector .btn {
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-selector .btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.dropdown-menu {
    background-color: var(--card-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: dropdownFade 0.25s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    color: var(--text-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.dropdown-item.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-container {
    background-color: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 15px 35px var(--shadow-color);
    padding: 2.5rem;
    max-width: 470px;
    width: 100%;
    animation: fadeIn 0.8s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    opacity: 0.15;
    z-index: 0;
}

.login-container::after {
    content: '';
    position: absolute;
    bottom: -70px;
    right: -70px;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Login Tabs */
.login-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.nav-pills .nav-link {
    background-color: transparent;
    color: var(--text-color);
    border-radius: 12px;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.25);
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: rgba(67, 97, 238, 0.1);
    border-color: rgba(67, 97, 238, 0.2);
}

/* Form Elements */
.form-label {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-color);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    transition: all 0.25s ease;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.input-group-text {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px 0 0 12px;
}

.form-check-wrapper {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.form-check {
    margin-bottom: 0.75rem;
    padding-left: 1.75rem;
}

.form-check-label {
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-left: 0.25rem;
    line-height: 1.4;
}

.form-check-label a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s;
}

.form-check-label a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.form-check-input {
    width: 1.1em;
    height: 1.1em;
    margin-top: 0.2em;
    margin-left: -1.75rem;
    border-radius: 4px;
    border: 1px solid var(--input-border);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Button */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 12px;
    padding: 0.85rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(67, 97, 238, 0.25);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    opacity: 0.6;
}

/* Device Info */
.device-info {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 0.75rem;
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-top: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .device-info {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Status Messages */
.alert {
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-top: 1.25rem;
    animation: slideIn 0.3s ease-out;
    position: relative;
    z-index: 1;
    border: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background-color: rgba(12, 206, 107, 0.1);
    border: 1px solid rgba(12, 206, 107, 0.2);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(229, 56, 59, 0.1);
    border: 1px solid rgba(229, 56, 59, 0.2);
    color: var(--danger-color);
}

/* Modal Styling */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    color: var(--primary-color);
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body h6 {
    color: var(--primary-color);
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

.modal-body h6:first-child {
    margin-top: 0;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.25rem 1.5rem;
}

/* Footer */
footer {
    color: rgba(255, 255, 255, 0.7);
    padding: 1.25rem;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 2rem;
        margin: 0 1rem;
    }

    .login-tabs .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
    
    .company-logo img {
        max-height: 70px;
    }
    
    .bg-element-1, .bg-element-2 {
        opacity: 0.05;
    }
}

@media (max-width: 576px) {
    .login-tabs {
        flex-direction: column;
        width: 100%;
    }

    .login-tabs .nav-item {
        width: 100%;
    }

    .login-tabs .nav-link {
        text-align: center;
        width: 100%;
        margin-bottom: 0.3rem;
        padding: 0.6rem 0.75rem;
    }

    .login-container {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .form-control {
        padding: 0.75rem 0.85rem;
    }
    
    .company-logo img {
        max-height: 60px;
    }
} 