﻿/* ============================================================
   login.css - Opsigo Login Page Styles
   ============================================================ */

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

/* ============================================================
   AUTH LAYOUT (NoNavLayout)
   ============================================================ */
.auth-layout {
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* ============================================================
   LOGIN PAGE STRUCTURE
   ============================================================ */
.login-page {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

/* ============================================================
   LEFT PANEL - Blue Slideshow
   ============================================================ */
.login-left {
    position: relative;
    flex: 0 0 58%;
    overflow: hidden;
    background: #0a3fa8;
}

/* Slides */
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

    .slide.active {
        opacity: 1;
    }

/* Gradient overlays for slides */
.slide-1 {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 30%, #1976d2 60%, #42a5f5 100%);
}

.slide-2 {
    background: linear-gradient(135deg, #01579b 0%, #0277bd 40%, #0288d1 70%, #29b6f6 100%);
}

.slide-3 {
    background: linear-gradient(135deg, #1a237e 0%, #283593 30%, #303f9f 60%, #5c6bc0 100%);
}

.slide-4 {
    background: linear-gradient(135deg, #003c8f 0%, #0a52be 40%, #1e76e8 70%, #64b5f6 100%);
}

/* Subtle animated mesh overlay on every slide */
.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 50%), radial-gradient(ellipse at 80% 70%, rgba(255,255,255,0.06) 0%, transparent 50%);
    animation: meshShift 8s ease-in-out infinite alternate;
}

@keyframes meshShift {
    from {
        transform: scale(1) translateY(0);
    }

    to {
        transform: scale(1.05) translateY(-10px);
    }
}

/* Floating geometric shapes */
.slide::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    bottom: -50px;
    left: -80px;
    animation: floatCircle 12s ease-in-out infinite;
}

@keyframes floatCircle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, -20px) scale(1.05);
    }
}

/* Slide content (optional text) */
.slide-content {
    position: absolute;
    bottom: 80px;
    left: 48px;
    right: 48px;
    color: rgba(255,255,255,0.9);
    z-index: 2;
}

    .slide-content h2 {
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 10px;
        letter-spacing: -0.3px;
        line-height: 1.3;
    }

    .slide-content p {
        font-size: 15px;
        font-weight: 400;
        color: rgba(255,255,255,0.72);
        line-height: 1.6;
        max-width: 380px;
    }

/* Nav arrows */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 16px;
    pointer-events: none;
}

.slide-arrow {
    pointer-events: all;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    line-height: 1;
}

    .slide-arrow:hover {
        background: rgba(255,255,255,0.3);
        transform: scale(1.08);
    }

/* Pause button */
.slide-pause {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

    .slide-pause:hover {
        background: rgba(255,255,255,0.3);
    }

/* Dots */
.slide-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 7px;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.38);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

    .dot.active {
        width: 24px;
        border-radius: 4px;
        background: rgba(255,255,255,0.92);
    }

/* ============================================================
   RIGHT PANEL - Login Form
   ============================================================ */
.login-right {
    flex: 0 0 42%;
    background: #f7f8fc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    overflow-y: auto;
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
    animation: cardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    width: 140px;
    height: auto;
    object-fit: contain;
    margin-top: 20px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.login-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a2236;
    letter-spacing: -0.1px;
    margin: 0;
}

/* Alert */
.login-alert {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.22);
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    animation: fadeIn 0.3s ease;
}

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
    letter-spacing: 0.1px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    color: #111827;
    background-color: #fff;
    border: 1.5px solid #e2e5eb;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}

    .form-control:focus {
        outline: none;
        border-color: #1565c0;
        box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
    }

    .form-control::placeholder {
        color: #b0b8c9;
    }

/* Password wrapper */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    line-height: 1;
}

    .password-toggle:hover {
        color: #1565c0;
    }

/* Forgot password */
.forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.forgot-password-link {
    font-size: 12.5px;
    font-weight: 600;
    color: #1565c0;
    text-decoration: none;
    transition: color 0.2s;
}

    .forgot-password-link:hover {
        color: #0d47a1;
        text-decoration: underline;
    }

/* Login button */
.btn-login {
    width: 100%;
    padding: 11px 16px;
    background: #0d47a1;
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn-login:hover:not(:disabled) {
        background: #1565c0;
        transform: translateY(-1px);
        box-shadow: 0 4px 14px rgba(13, 71, 161, 0.35);
    }

    .btn-login:active:not(:disabled) {
        transform: translateY(0);
        box-shadow: none;
    }

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

/* Spinner */
.spinner-border {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,0.4);
    border-right-color: white;
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
    flex-shrink: 0;
}

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

/* Footer */
.login-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #f0f2f6;
}

.terms-text {
    font-size: 11.5px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.6;
    margin: 0;
}

.terms-link {
    color: #1565c0;
    text-decoration: none;
    font-weight: 500;
}

    .terms-link:hover {
        text-decoration: underline;
    }

/* Validation */
.text-danger {
    font-size: 11.5px;
    color: #dc2626;
    display: block;
    margin-top: 5px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ============================================================
   RESPONSIVE - Tablet
   ============================================================ */
@media (max-width: 900px) {
    .login-left {
        flex: 0 0 50%;
    }

    .login-right {
        flex: 0 0 50%;
    }

    .login-card {
        padding: 32px 24px;
        max-width: 360px;
    }

    .slide-content h2 {
        font-size: 22px;
    }
}

/* ============================================================
   RESPONSIVE - Mobile
   ============================================================ */
@media (max-width: 640px) {
    html, body {
        overflow: auto;
    }

    .login-page {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .login-left {
        flex: none;
        height: 200px;
        width: 100%;
    }

    .slide-content {
        display: none;
    }

    .slide-dots {
        bottom: 12px;
    }

    .slide-pause {
        top: 12px;
        right: 12px;
    }

    .login-right {
        flex: 1;
        padding: 24px 16px 40px;
        background: #f7f8fc;
        align-items: flex-start;
        justify-content: center;
    }

    .login-card {
        padding: 28px 20px;
        max-width: 100%;
        border-radius: 12px;
    }

    .login-logo {
        width: 72px;
    }

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

/* ============================================================
   LOCKOUT PAGE
   ============================================================ */
.lockout-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #42a5f5 100%);
    text-align: center;
}

.lockout-card {
    background: white;
    border-radius: 20px;
    padding: 52px 40px 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    max-width: 460px;
    width: 100%;
    animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.lockout-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .lockout-icon svg {
        width: 34px;
        height: 34px;
        stroke: white;
        stroke-width: 2;
        fill: none;
    }

.lockout-card h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1a2236;
    margin-bottom: 14px;
}

.lockout-card p {
    font-size: 14.5px;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 28px;
}

.btn-home {
    display: inline-block;
    padding: 12px 32px;
    background: #0d47a1;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

    .btn-home:hover {
        background: #1565c0;
        transform: translateY(-1px);
        box-shadow: 0 4px 14px rgba(13, 71, 161, 0.35);
        color: white;
    }

@media (max-width: 480px) {
    .lockout-card {
        padding: 40px 24px 32px;
    }

        .lockout-card h1 {
            font-size: 22px;
        }
}

/* ============================================================
   PRIVACY POLICY POPUP - Bootstrap Icons
   ============================================================ */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

.privacy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

    .privacy-modal.show {
        display: flex;
    }

.privacy-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.privacy-modal-header {
    padding: 24px 28px 16px;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    z-index: 1;
}

    .privacy-modal-header h2 {
        font-size: 20px;
        font-weight: 700;
        color: #1a2236;
        margin: 0;
        letter-spacing: -0.3px;
    }

.privacy-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

    .privacy-close:hover {
        background: #f3f4f6;
        color: #1f2937;
    }

    .privacy-close i {
        font-size: 20px;
    }

.privacy-modal-body {
    padding: 24px 28px 32px;
}

.privacy-section {
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
}

    .privacy-section:last-child {
        margin-bottom: 0;
    }

.privacy-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #e8f0fe;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d47a1;
}

    .privacy-icon i {
        font-size: 18px;
    }

.privacy-text {
    flex: 1;
}

    .privacy-text h3 {
        font-size: 16px;
        font-weight: 600;
        color: #0d47a1;
        margin-bottom: 6px;
        letter-spacing: -0.2px;
    }

    .privacy-text p {
        font-size: 14px;
        line-height: 1.6;
        color: #4b5563;
        margin: 0;
    }

.privacy-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #eef2f6;
    text-align: right;
}

.btn-close-modal {
    padding: 10px 24px;
    background: #0d47a1;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .btn-close-modal:hover {
        background: #1565c0;
    }

    .btn-close-modal i {
        font-size: 16px;
    }

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .privacy-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .privacy-modal-header {
        padding: 20px 20px 12px;
    }

    .privacy-modal-body {
        padding: 20px 20px 28px;
    }

    .privacy-section {
        gap: 8px;
    }

    .privacy-icon {
        width: 28px;
        height: 28px;
    }

        .privacy-icon i {
            font-size: 16px;
        }

    .privacy-text h3 {
        font-size: 15px;
    }

    .privacy-text p {
        font-size: 13px;
    }
}