/* DepthX Admin - Modern 3D Glass Teal Theme Login */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800&display=swap');

:root {
    --bg-dark: #03080d;
    --container-bg: #061118;
    --card-bg: rgba(7, 18, 26, 0.85);
    --border-cyan: rgba(0, 245, 184, 0.18);
    --border-hover: rgba(0, 245, 184, 0.4);
    --cyan-primary: #00f5b8;
    --cyan-secondary: #00d4ff;
    --cyan-glow: rgba(0, 245, 184, 0.45);
    --text-white: #ffffff;
    --text-muted: #7e94a3;
    --text-dark-muted: #526775;
}

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

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 75% 30%, rgba(0, 245, 184, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 25% 70%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow-x: hidden;
}

/* Background Mountain Silhouette Decor */
.bg-mountain-decor {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 450px;
    height: 300px;
    background: linear-gradient(135deg, rgba(0, 245, 184, 0.03) 0%, rgba(0, 212, 255, 0.01) 100%);
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
    pointer-events: none;
    z-index: 0;
}

/* Main Container Wrapper */
.login-wrapper {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.login-container {
    display: flex;
    background: linear-gradient(135deg, rgba(8, 20, 28, 0.95) 0%, rgba(4, 11, 16, 0.98) 100%);
    border: 1px solid var(--border-cyan);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(0, 245, 184, 0.05);
    min-height: 640px;
    position: relative;
}

/* Top Right Meta Nav */
.top-meta-nav {
    position: absolute;
    top: 1.75rem;
    right: 2.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 10;
}

.top-meta-nav span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #4a6272;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease;
}

.top-meta-nav span:hover,
.top-meta-nav span.active {
    color: var(--cyan-primary);
}

.top-meta-nav span.active {
    border-bottom: 2px solid var(--cyan-primary);
    padding-bottom: 2px;
}

/* Left Panel - Branding & Features */
.login-left-panel {
    flex: 1.15;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 2.5rem;
    min-width: 440px;
    background: url('../images/login-bg.png') center/cover no-repeat;
}

.left-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 17, 24, 0.92) 0%, rgba(3, 10, 15, 0.96) 100%);
    z-index: 1;
}

.left-panel-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Brand Header */
.brand-header {
    text-align: left;
    margin-top: 0.5rem;
}

.brand-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}

.brand-logo {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #00f5b8 0%, #00b3df 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #030e15;
    box-shadow: 0 8px 20px rgba(0, 245, 184, 0.4);
}

.brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1;
}

.brand-title span {
    color: var(--cyan-primary);
}

.brand-subtitle {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    margin-top: 0.4rem;
    margin-bottom: 1.25rem;
}

.brand-tagline {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: #4a6375;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* Feature List */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin: 1rem 0 2rem 0;
}

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

.feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 245, 184, 0.08);
    border: 1px solid rgba(0, 245, 184, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.feature-info h6 {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0 0 0.15rem 0;
}

.feature-info p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

/* Bottom Decorative Handwriting & Footer */
.bottom-decor-wrapper {
    position: relative;
    margin-top: 1.5rem;
}

.cursive-tagline {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    color: var(--cyan-primary);
    transform: rotate(-6deg);
    display: inline-block;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(0, 245, 184, 0.4);
    line-height: 1;
}

.left-panel-footer {
    color: var(--text-dark-muted);
    font-size: 0.82rem;
}

/* Center Phone Mockup Component */
.center-phone-wrapper {
    position: absolute;
    left: 45%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
}

.eclipse-glow-ring {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 2px solid var(--cyan-primary);
    box-shadow: 0 0 40px rgba(0, 245, 184, 0.4), inset 0 0 30px rgba(0, 245, 184, 0.2);
    opacity: 0.6;
}

.iphone-mockup {
    width: 260px;
    height: 520px;
    background: #000;
    border-radius: 40px;
    border: 6px solid #222933;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 245, 184, 0.15);
    position: relative;
    overflow: hidden;
    transform: rotate(-3deg);
}

.iphone-dynamic-island {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: #000;
    border-radius: 12px;
    z-index: 10;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(8, 24, 34, 0.6) 0%, rgba(3, 10, 16, 0.85) 100%),
                url('../images/login-bg.png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 1.25rem 1.75rem 1.25rem;
    color: #fff;
    text-align: center;
}

.phone-clock-widget {
    margin-top: 1.5rem;
}

.phone-date {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.2rem;
}

.phone-time {
    font-family: 'Outfit', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.phone-footer-brand {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

/* Right Panel - Login Form */
.login-right-panel {
    flex: 1;
    padding: 3rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 6;
}

.form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-cyan);
    border-radius: 26px;
    width: 100%;
    max-width: 420px;
    padding: 2.5rem 2.25rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.form-header {
    margin-bottom: 1.75rem;
}

.form-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.35rem;
    letter-spacing: -0.5px;
}

.form-title span {
    color: var(--cyan-primary);
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Form Controls */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #d1dfeb;
    margin-bottom: 0.45rem;
    display: block;
}

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

.input-icon {
    position: absolute;
    left: 1.15rem;
    color: var(--text-dark-muted);
    font-size: 1rem;
    z-index: 2;
    pointer-events: none;
}

.form-control {
    background: #081620 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 25px !important;
    color: #ffffff !important;
    padding: 0.8rem 1rem 0.8rem 2.85rem !important;
    font-size: 0.92rem !important;
    width: 100%;
    transition: all 0.2s ease;
}

.form-control::placeholder {
    color: var(--text-dark-muted) !important;
}

.form-control:focus {
    background: #051017 !important;
    border-color: var(--cyan-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 245, 184, 0.25) !important;
    outline: none;
}

.btn-toggle-password {
    position: absolute;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: color 0.2s ease;
}

.btn-toggle-password:hover {
    color: #ffffff;
}

/* Options Row */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.custom-checkbox .form-check-input {
    background-color: #081620;
    border-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0;
    cursor: pointer;
}

.custom-checkbox .form-check-input:checked {
    background-color: var(--cyan-primary);
    border-color: var(--cyan-primary);
}

.custom-checkbox .form-check-label {
    color: #c0d1df;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding-left: 0.25rem;
}

.forgot-password-link {
    color: var(--cyan-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: #40ffcc;
    text-decoration: underline;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(90deg, #00f5b8 0%, #00d4ff 100%);
    border: none;
    border-radius: 25px;
    color: #030e15;
    padding: 0.85rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px var(--cyan-glow);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-submit:hover {
    background: linear-gradient(90deg, #1affc6 0%, #1ad8ff 100%);
    box-shadow: 0 8px 30px rgba(0, 245, 184, 0.6);
    transform: translateY(-1px);
    color: #030e15;
}

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

.alert-custom {
    border-radius: 12px;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Responsive Breakdown */
@media (max-width: 1100px) {
    .center-phone-wrapper {
        display: none;
    }
}

@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
        max-width: 500px;
        min-height: auto;
    }

    .top-meta-nav {
        display: none;
    }

    .login-left-panel {
        min-width: 100%;
        padding: 2.5rem 2rem 2rem;
    }

    .feature-list {
        margin: 1rem 0 1.5rem 0;
    }

    .login-right-panel {
        padding: 1.5rem;
        justify-content: center;
    }

    .form-card {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }
}
