body {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 25%, #fbbf24 50%, #f59e0b 75%, #d97706 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow-x: hidden;
}

body::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.auth-wrapper {
    width: 100%;
    max-width: 450px;
}

.auth-inner {
    position: relative;
}

.loginlogo {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffed4e, #fbbf24, #f59e0b, #d97706);
}

.card-body {
    padding: 2.5rem;
}

.card-text {
    text-align: center;
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
    background: rgba(255, 255, 255, 1);
}

.input-group-merge .input-group-text {
    background-color: #fef3c7;
    border: 1px solid #d1d5db;
    border-left: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-group-merge .input-group-text:hover {
    background-color: #fde68a;
    border-color: #f59e0b;
}

.input-group-merge .input-group-text i {
    color: #6b7280;
    transition: color 0.3s ease;
}

.input-group-merge .input-group-text:hover i {
    color: #f59e0b;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc2626;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
}

.is-valid {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
}

.is-invalid {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}

.swal-custom-popup {
    border-radius: 12px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.swal-custom-title {
    font-weight: 600 !important;
    color: #1f2937 !important;
}

.swal-custom-html {
    color: #4b5563 !important;
    font-size: 14px !important;
}

.input-group-merge {
    position: relative;
}

.input-group-text {
    background: transparent;
    border: 2px solid #e5e7eb;
    border-left: none;
    border-radius: 0 12px 12px 0;
    color: #6b7280;
    transition: all 0.3s ease;
}

.form-control-merge {
    border-right: none;
    border-radius: 12px 0 0 12px;
}

.form-control-merge:focus + .input-group-text {
    border-color: #f59e0b;
    color: #f59e0b;
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #d97706, #b45309);
}

.btn-primary:active {
    transform: translateY(0);
}

#loginmessage {
    display: block;
    margin-bottom: 1rem;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.alert {
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-pointer:hover {
    color: #f59e0b;
}

@media (max-width: 768px) {
    .loginlogo {
        font-size: 2.5rem;
    }
    
    .card-body {
        padding: 2rem 1.5rem;
    }
    
    .auth-wrapper {
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .loginlogo {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.5rem 1rem;
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

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

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-elements::before {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-elements::after {
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
}

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