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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #F7F7F8;
    color: #131316;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(0,0,0,0.06)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

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

/* Right Section - Login Form */
.right-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.login-container {
    background: #FFFFFF;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    padding: 48px 40px;
    border-radius: 20px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.05);
}

.login-header {
    margin-bottom: 32px;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: #131316;
    margin: 0;
    letter-spacing: -0.3px;
}

.login-subtitle {
    font-size: 14px;
    color: #555;
    margin-top: 8px;
    font-weight: 500;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #6B7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.label-row label {
    margin: 0;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6366F1;
    opacity: 0.6;
    z-index: 1;
    width: 20px;
    height: 20px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 16px;
    color: #131316;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #6366F1;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder {
    color: #9CA3AF;
    opacity: 0.7;
}

.input-action-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    z-index: 1;
}

.input-action-btn:hover {
    color: #6366F1;
}

.input-action-btn svg {
    width: 16px;
    height: 16px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #6366F1;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-container label {
    font-size: 14px;
    color: #666;
    margin: 0;
    cursor: pointer;
}

.forgot-link {
    color: #6366F1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.forgot-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.btn {
    width: 100%;
    padding: 16px;
    background: #6366F1;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.2);
    filter: brightness(1.1);
}

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

/* Messages */
.error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: none;
    font-size: 14px;
}

.success {
    background: rgba(25, 135, 84, 0.1);
    border: 1px solid rgba(25, 135, 84, 0.3);
    color: #198754;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: none;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 480px) {
    .login-page {
        padding: 16px;
    }

    .login-title {
        font-size: 28px;
    }

    .login-container {
        padding: 32px 24px;
    }
}