/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #0f4c75 0%, #1e3c72 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Animation */
.background-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    right: 10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: -75px;
    animation-delay: -10s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    bottom: 30%;
    left: -125px;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(20px) rotate(240deg);
    }
}

/* Login Wrapper */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 1200px;
    min-height: 700px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    animation: slideUp 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Left Side - Brand */
.login-brand {
    background: linear-gradient(135deg, #0f4c75 0%, #3282b8 100%);
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="white" opacity="0.1"/></svg>');
    opacity: 0.1;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    z-index: 1;
}

.brand-logo i {
    font-size: 36px;
    color: #ffd700;
}

.brand-content h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-content p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 40px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.feature:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.2);
}

.feature:nth-child(1) { animation-delay: 0.2s; }
.feature:nth-child(2) { animation-delay: 0.4s; }
.feature:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.feature i {
    font-size: 24px;
    color: #ffd700;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.feature p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

/* Right Side - Form */
.login-form-wrapper {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-form-container {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.form-header p {
    color: #718096;
    font-size: 14px;
}

/* Notifications */
.error-notification,
.success-notification,
.info-notification {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.4s ease;
}

.error-notification {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.success-notification {
    background: #eff;
    border: 1px solid #cce;
    color: #339;
}

.info-notification {
    background: #eef;
    border: 1px solid #ccd;
    color: #336;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form */
.login-form {
    margin-bottom: 30px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-label {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 20px 0 10px 0;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    background: transparent;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-bottom-color: #0f4c75;
}

.form-input:focus ~ label,
.form-input:not(:placeholder-shown) ~ label,
.focused label {
    transform: translateY(-25px) scale(0.85);
    color: #0f4c75;
}

.form-input:focus ~ .underline {
    transform: scaleX(1);
}

.underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0f4c75;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.floating-label label {
    position: absolute;
    top: 20px;
    left: 0;
    font-size: 16px;
    color: #a0aec0;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.floating-label label i {
    font-size: 18px;
}

.toggle-password {
    position: absolute;
    right: 0;
    top: 20px;
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #0f4c75;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container:hover .checkmark {
    border-color: #0f4c75;
}

.checkbox-container.checked .checkmark {
    background: #0f4c75;
    border-color: #0f4c75;
}

.checkbox-container.checked .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-label {
    color: #4a5568;
    font-size: 14px;
}

.forgot-link {
    color: #0f4c75;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

/* Login Button */
.login-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #0f4c75 0%, #3282b8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 76, 117, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple 0.6s linear;
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #a0aec0;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    padding: 0 15px;
}

/* Register Prompt */
.register-prompt {
    text-align: center;
    margin-bottom: 30px;
}

.register-prompt p {
    color: #718096;
    margin-bottom: 15px;
    font-size: 14px;
}

.register-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: #edf2f7;
    color: #2d3748;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.register-link:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* Quick Links */
.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 40px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f7fafc;
    color: #4a5568;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: #edf2f7;
    color: #0f4c75;
    transform: translateY(-2px);
}

/* Footer */
.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.login-footer p {
    color: #a0aec0;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: #718096;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0f4c75;
}

/* Responsive */
@media (max-width: 992px) {
    .login-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        min-height: auto;
    }
    
    .login-brand {
        display: none;
    }
    
    .login-form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .login-form-wrapper {
        padding: 20px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
    }
}