@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #0f172a;
    --primary-accent: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-accent: #0d9488;
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #1e293b;
    --card-bg: rgba(255, 255, 255, 0.96);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --focus-ring: rgba(37, 99, 235, 0.2);
    --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    --radius-lg: 20px;
    --radius-md: 12px;
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    background: radial-gradient(circle at 15% 15%, #1e293b 0%, #0f172a 60%, #090d16 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    padding: 1.5rem;
    position: relative;
    overflow-x: hidden;
}

/* Background Ambient Orbs */
body::before,
body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.35;
    pointer-events: none;
}

body::before {
    width: 450px;
    height: 450px;
    background: #2563eb;
    top: -10%;
    left: -5%;
}

body::after {
    width: 400px;
    height: 400px;
    background: #0d9488;
    bottom: -10%;
    right: -5%;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.login-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Left Login Side */
.login-left {
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-header {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-logo {
    height: 4rem;
    object-fit: contain;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

.slogan-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.slogan-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Form Styles */
.login-form {
    margin-top: 1rem;
}

.input-group-custom {
    position: relative;
    margin-bottom: 1.25rem;
}

.input-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    transition: color 0.2s ease;
    z-index: 2;
}

.input-login {
    width: 100%;
    height: 52px;
    padding: 0.75rem 1rem 0.75rem 3rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    background-color: #f8fafc;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-login:focus {
    background-color: #ffffff;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.input-group-custom:focus-within .input-icon {
    color: var(--primary-accent);
}

.btn-toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    transition: color 0.2s ease;
    z-index: 2;
}

.btn-toggle-password:hover {
    color: var(--primary-accent);
}

.btn-access {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.3);
    transition: all 0.25s ease;
    margin-top: 1.5rem;
}

.btn-access:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 24px -6px rgba(37, 99, 235, 0.4);
}

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

/* Custom Alert Messages */
.alert-custom {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    animation: fadeIn 0.3s ease-in-out;
}

.alert-custom-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.alert-custom-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

/* Contact Footer */
.contact-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-color);
    text-align: center;
}

.contact-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.contact-detail {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-detail:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Right Feature Showcase Side */
.login-right {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    padding: 3.5rem 3rem;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.login-right::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.15), transparent 50%);
    pointer-events: none;
}

.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #60a5fa;
    backdrop-filter: blur(8px);
    width: fit-content;
}

.feature-list {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #38bdf8;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    color: #f8fafc;
}

.feature-text p {
    font-size: 0.825rem;
    color: #94a3b8;
    line-height: 1.4;
}

.legal-terms {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.25rem;
}

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

/* Responsiveness */
@media (max-width: 991.98px) {
    .login-left {
        padding: 2.5rem 2rem;
    }
    .login-right {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 767.98px) {
    body {
        padding: 1rem;
    }
    .login-left {
        padding: 2rem 1.5rem;
    }
    .login-right {
        padding: 2rem 1.5rem;
    }
}