body {
    padding: 0;
    margin: 0;
    background: linear-gradient(135deg, #FF3AAE 0%, #FF73C3 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ====================================
   MAIN CONTAINER LAYOUT
   ==================================== */
.main-container {
    display: flex;
    max-width: 1100px;
    width: 100%;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    min-height: 650px;
    margin: 30px;
    animation: slideUp 0.6s ease-out;
}

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

/* ====================================
   WELCOME SECTION (LEFT SIDE)
   ==================================== */
.welcome-section {
    flex: 1;
    background: linear-gradient(135deg, #FF3AAE 0%, #FF73C3 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 50px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.welcome-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: url('logos/UWISAN logo.png') center/contain no-repeat;
    opacity: 0.70;
    z-index: 1;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.welcome-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.welcome-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Welcome message styling */
.welcome-message {
    text-align: center;
    margin-bottom: 25px;
    animation: fadeIn 0.8s ease-in-out;
}

.welcome-message h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.welcome-message p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 300;
}

/* ====================================
   LOGIN SECTION (RIGHT SIDE)
   ==================================== */
.login-section {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

/* Login header styling */
.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h1 {
    color: #1a1a2e;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px 0;
    position: relative;
}

.login-header h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    height: 4px;
    width: 60px;
    background: linear-gradient(135deg, #FF3AAE 0%, #FF73C3 100%);
    border-radius: 2px;
}

.login-header h3 {
    color: #1a1a2e;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.login-header h4 {
    color: #1a1a2e;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-header p {
    color: #6c757d;
    font-size: 1.05rem;
    margin: 0;
    font-weight: 400;
}

/* ====================================
   RESET FORM
   ==================================== */
.reset-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 35px 30px;
    border-radius: 18px;
    margin-bottom: 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #e9ecef;
}

/* ====================================
   FORM STYLING
   ==================================== */
.form-floating {
    margin-bottom: 22px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    outline: none;
    transform: translateY(-2px);
}

.form-control:disabled {
    background-color: #e9ecef;
    opacity: 0.7;
    cursor: not-allowed;
    border-color: #dee2e6;
}

.form-floating label {
    color: #6c757d;
    font-weight: 500;
    padding-left: 18px;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    color: #667eea;
}
body {
    padding: 0;
    margin: 0;
    background: linear-gradient(135deg, #FF3AAE 0%, #FF73C3 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ====================================
   MAIN CONTAINER LAYOUT
   ==================================== */
.main-container {
    display: flex;
    max-width: 1100px;
    width: 100%;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    min-height: 650px;
    margin: 30px;
    animation: slideUp 0.6s ease-out;
}

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

/* ====================================
   WELCOME SECTION (LEFT SIDE)
   ==================================== */
.welcome-section {
    flex: 1;
    background: linear-gradient(135deg, #FF3AAE 0%, #FF73C3 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 50px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.welcome-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: url('logos/UWISAN logo.png') center/contain no-repeat;
    opacity: 0.70;
    z-index: 1;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.welcome-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.welcome-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Welcome message styling */
.welcome-message {
    text-align: center;
    margin-bottom: 25px;
    animation: fadeIn 0.8s ease-in-out;
}

.welcome-message h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.welcome-message p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 300;
}

/* ====================================
   LOGIN SECTION (RIGHT SIDE)
   ==================================== */
.login-section {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

/* Login header styling */
.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h1 {
    color: #1a1a2e;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px 0;
    position: relative;
}

.login-header h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    height: 4px;
    width: 60px;
    background: linear-gradient(135deg, #FF3AAE 0%, #FF73C3 100%);
    border-radius: 2px;
}

.login-header h3 {
    color: #1a1a2e;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.login-header h4 {
    color: #1a1a2e;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-header p {
    color: #6c757d;
    font-size: 1.05rem;
    margin: 0;
    font-weight: 400;
}

/* ====================================
   RESET FORM
   ==================================== */
.reset-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 35px 30px;
    border-radius: 18px;
    margin-bottom: 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #e9ecef;
}

/* ====================================
   FORM STYLING
   ==================================== */
.form-floating {
    margin-bottom: 22px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    outline: none;
    transform: translateY(-2px);
}

.form-control:disabled {
    background-color: #e9ecef;
    opacity: 0.7;
    cursor: not-allowed;
    border-color: #dee2e6;
}

.form-floating label {
    color: #6c757d;
    font-weight: 500;
    padding-left: 18px;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    color: #667eea;
}

/* ====================================
   SHOW PASSWORD CHECKBOX
   ==================================== */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
    padding-left: 18px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin: 0 10px 0 0;
    cursor: pointer;
    accent-color: #FF73C3;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background-color: #fff;
}

.form-check-input:checked {
    background-color: #FF73C3;
    border-color: #FF73C3;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 115, 195, 0.25);
    border-color: #FF73C3;
    outline: none;
}

.form-check-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-check-label {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
    transition: color 0.3s ease;
    user-select: none;
    margin: 0;
    line-height: 18px;
}

.form-check-label:hover {
    color: #FF73C3;
}

.form-check-input:checked + .form-check-label {
    color: #FF73C3;
}

.form-check-label:has(input:disabled) {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ====================================
   BUTTONS
   ==================================== */
.btn-primary {
    background: linear-gradient(135deg, #FF3AAE 0%, #FF73C3 100%);
    border: 1px solid transparent;
    padding: 16px 35px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    color: white;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 115, 195, 0.6);
    background: linear-gradient(135deg, #FF3AAE 0%, #FF73C3 100%);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-warning {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 14px 35px;
    border-radius: 12px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 216, 155, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 216, 155, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: none;
    font-weight: 700;
    padding: 14px 35px;
    border-radius: 12px;
    width: 100%;
    color: white;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #3d4347 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.d-grid {
    display: grid;
}

.d-grid.gap-2 {
    gap: 12px;
}

/* ====================================
   FORGOT PASSWORD LINK
   ==================================== */
.forgot-password-link {
    color: #667eea;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.forgot-password-link:hover {
    color: #764ba2;
    text-decoration: none;
    transform: translateX(3px);
}

.forgot-password-link i {
    margin-right: 6px;
}

/* ====================================
   ALERTS
   ==================================== */
.alert {
    border-radius: 12px;
    margin-bottom: 20px;
    border: none;
    padding: 15px 18px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    animation: slideInDown 0.5s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert i {
    margin-right: 12px;
    font-size: 20px;
    flex-shrink: 0;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #fce4e6 100%);
    color: #721c24;
    border-left: 5px solid #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #fffaeb 100%);
    color: #856404;
    border-left: 5px solid #ffc107;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #e8f5e9 100%);
    color: #155724;
    border-left: 5px solid #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #e3f2fd 100%);
    color: #0c5460;
    border-left: 5px solid #17a2b8;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.2);
}

/* ====================================
   UTILITY CLASSES
   ==================================== */
.text-danger {
    color: #dc3545;
}

.text-warning {
    color: #856404;
}

.text-success {
    color: #28a745;
}

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

.text-muted {
    color: #6c757d;
}

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

.mb-3 {
    margin-bottom: 1rem;
}

/* ====================================
   ANIMATIONS
   ==================================== */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(238, 90, 111, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(238, 90, 111, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(238, 90, 111, 0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ====================================
   RESPONSIVE DESIGN - TABLET
   ==================================== */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        max-width: 100%;
        margin: 15px;
        border-radius: 20px;
    }
    
    .welcome-section {
        padding: 40px 30px;
        min-height: 220px;
    }
    
    .welcome-section::after {
        width: 240px;
        height: 240px;
    }
    
    .login-section {
        padding: 40px 30px;
    }
    
    .welcome-title {
        font-size: 2.2rem;
    }
    
    .welcome-subtitle {
        font-size: 1.15rem;
    }
    
    .login-header h3 {
        font-size: 1.8rem;
    }
    
    .login-header h4 {
        font-size: 1.4rem;
    }
}

/* ====================================
   RESPONSIVE DESIGN - MOBILE
   ==================================== */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .main-container {
        margin: 10px 5px;
        border-radius: 16px;
        min-height: auto;
    }
    
    .welcome-section {
        padding: 30px 20px;
        min-height: 180px;
    }
    
    .welcome-section::after {
        width: 200px;
        height: 200px;
    }
    
    .login-section {
        padding: 30px 20px;
    }
    
    .welcome-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .login-header h3 {
        font-size: 1.6rem;
    }
    
    .login-header h4 {
        font-size: 1.2rem;
    }
    
    .login-header {
        margin-bottom: 25px;
    }
    
    .alert {
        font-size: 0.9rem;
        padding: 14px 16px;
        border-radius: 10px;
    }
    
    .alert i {
        font-size: 18px;
        margin-right: 10px;
    }
    
    .reset-form {
        padding: 28px 22px;
        margin-bottom: 22px;
    }
    
    .form-control {
        font-size: 15px;
        padding: 14px 16px;
        border-radius: 10px;
    }
    
    .form-floating {
        margin-bottom: 20px;
    }
    
    .form-check {
        margin-bottom: 20px;
    }
    
    .form-check-label {
        font-size: 13px;
    }
    
    .form-check-input {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }
    
    .btn-primary,
    .btn-warning,
    .btn-secondary {
        padding: 14px 28px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .forgot-password-link {
        font-size: 14px;
    }
}

/* ====================================
   EXTRA SMALL DEVICES
   ==================================== */
@media (max-width: 360px) {
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .welcome-section::after {
        width: 180px;
        height: 180px;
    }
    
    .alert {
        font-size: 0.85rem;
        padding: 12px 14px;
    }
    
    .form-check-label {
        font-size: 12px;
    }
    
    .form-check-input {
        width: 16px;
        height: 16px;
    }
}