:root {
    --primary-color: #2c5aa0;
    --secondary-color: #1e3a8a;
    --accent-color: #10b981;
    --light-blue: #e7f3ff;
    --dark-blue: #1e293b;
    --text-gray: #64748b;
    --light-gray: #f8fafc;
    --danger-color: #ef4444;
    --success-color: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(
        135deg,
        var(--light-gray) 0%,
        var(--light-blue) 100%
    );
    min-height: 100vh;
    overflow-x: hidden;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.auth-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="3" fill="rgba(44,90,160,0.05)"/><circle cx="400" cy="100" r="2" fill="rgba(44,90,160,0.05)"/><circle cx="600" cy="300" r="4" fill="rgba(44,90,160,0.05)"/><circle cx="800" cy="150" r="2" fill="rgba(44,90,160,0.05)"/></svg>');
    animation: float 20s infinite linear;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.auth-card {
    background: white;
    border-radius: 25px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.brand-logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.brand-logo i {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.auth-subtitle {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 15px 20px 15px 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafbfc;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.15);
    background-color: white;
    outline: none;
}

.form-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.form-control:focus + .form-icon {
    color: var(--primary-color);
}

.btn-auth {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 15px;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.btn-auth::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s;
}

.btn-auth:hover::before {
    left: 100%;
}

.btn-primary-auth {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    color: white;
}

.btn-primary-auth:hover {
    background: linear-gradient(
        135deg,
        var(--secondary-color) 0%,
        var(--primary-color) 100%
    );
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 90, 160, 0.3);
}

.btn-outline-auth {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-auth:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 90, 160, 0.2);
}

.form-check {
    margin-bottom: 25px;
}

.form-check-input {
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    margin-top: 4px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.15);
}

.form-check-label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.auth-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    background: white;
    padding: 0 20px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: var(--text-gray);
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.auth-switch {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.auth-switch p {
    margin: 0;
    color: var(--text-gray);
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: var(--secondary-color);
}

.forgot-password {
    text-align: right;
    margin-bottom: 25px;
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: var(--secondary-color);
}

.alert-custom {
    border: none;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.role-selection {
    margin-bottom: 25px;
}

.role-selection label {
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.role-option {
    position: relative;
}

.role-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.role-option label {
    display: block;
    padding: 12px 8px;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    background: #fafbfc;
}

.role-option input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background: var(--light-blue);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.2);
}

.auth-features {
    margin-top: 20px;
    padding: 20px;
    background: var(--light-blue);
    border-radius: 15px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.feature-list li:last-child {
    margin-bottom: 0;
}

.feature-list i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 0.8rem;
}

.hidden {
    display: none !important;
}

.auth-toggle {
    background: var(--light-blue);
    border-radius: 15px;
    padding: 5px;
    margin-bottom: 30px;
    display: flex;
    position: relative;
}

.auth-toggle-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-gray);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 2;
    position: relative;
}

.auth-toggle-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
    width: 0%;
}

.strength-weak {
    background-color: var(--danger-color);
}
.strength-medium {
    background-color: #f59e0b;
}
.strength-strong {
    background-color: var(--success-color);
}

.strength-text {
    font-size: 0.8rem;
    color: var(--text-gray);
}

@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
        margin: 10px;
        border-radius: 20px;
    }

    .brand-logo {
        font-size: 1.8rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }
}
