/* auth/style.css - Gridcn Theme for Auth Pages */

/* ──────────────────────────────────
   RESET & BASE
   ────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
    background: #05070f;
    color: #dce7ff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ──────────────────────────────────
   LAYOUT
   ────────────────────────────────── */
.gridcn-login {
    display: flex;
    min-height: 100vh;
}

.branding-panel {
    flex: 1;
    background: linear-gradient(135deg, #05070f 0%, #091322 100%);
    position: relative;
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
}

.form-panel {
    flex: 1;
    max-width: 560px;
    background: #05070f;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* ──────────────────────────────────
   BACKGROUND EFFECTS
   ────────────────────────────────── */
.circuit-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(42, 246, 255, 0.03) 0%, transparent 50%);
}

.radial-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(42, 246, 255, 0.08), transparent 70%);
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(42, 246, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 246, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.grid-pattern-sm {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(42, 246, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 246, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
}

.scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(42, 246, 255, 0.01) 2px,
        rgba(42, 246, 255, 0.01) 4px
    );
    pointer-events: none;
}

.scanlines-card {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(42, 246, 255, 0.015) 2px,
        rgba(42, 246, 255, 0.015) 4px
    );
    pointer-events: none;
    border-radius: inherit;
}

/* ──────────────────────────────────
   BRANDING PANEL
   ────────────────────────────────── */
.branding-content {
    position: relative;
    z-index: 10;
    max-width: 400px;
}

.logo-box {
    width: 64px;
    height: 64px;
    border: 2px solid #2af6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 246, 255, 0.05);
    margin-bottom: 1.5rem;
}

.logo-box i {
    font-size: 32px;
    color: #2af6ff;
}

.logo-box-sm {
    width: 40px;
    height: 40px;
    border: 1.5px solid #2af6ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 246, 255, 0.05);
}

.logo-box-sm i {
    font-size: 20px;
    color: #2af6ff;
}

.brand-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #2af6ff;
    margin-bottom: 0.5rem;
}

.brand-title-sm {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2af6ff;
}

.brand-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(42, 246, 255, 0.3), transparent);
}

.divider-text {
    font-size: 0.75rem;
    color: rgba(42, 246, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.brand-desc {
    color: rgba(220, 231, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* ──────────────────────────────────
   FEATURE LIST
   ────────────────────────────────── */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

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

.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(42, 246, 255, 0.08);
    border: 1px solid rgba(42, 246, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    color: #2af6ff;
    font-size: 18px;
}

.feature-label {
    color: rgba(220, 231, 255, 0.8);
    font-size: 0.9rem;
}

/* ──────────────────────────────────
   STATUS BAR
   ────────────────────────────────── */
.status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(42, 246, 255, 0.03);
    border: 1px solid rgba(42, 246, 255, 0.1);
    border-radius: 8px;
}

.status-label {
    font-size: 0.75rem;
    color: rgba(220, 231, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-value {
    font-size: 0.8rem;
    color: #2af6ff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2af6ff;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ──────────────────────────────────
   MOBILE LOGO
   ────────────────────────────────── */
.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    justify-content: center;
}

/* ──────────────────────────────────
   FORM CONTAINER
   ────────────────────────────────── */
.form-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 10;
}

/* ──────────────────────────────────
   LOGIN CARD
   ────────────────────────────────── */
.login-card {
    background: rgba(9, 19, 34, 0.95);
    border: 1px solid rgba(42, 246, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* ──────────────────────────────────
   CORNER DECORATIONS
   ────────────────────────────────── */
.corner {
    position: absolute;
    width: 20px;
    height: 20px;
}

.corner-tl {
    top: 0;
    left: 0;
    border-top: 2px solid rgba(42, 246, 255, 0.4);
    border-left: 2px solid rgba(42, 246, 255, 0.4);
}

.corner-tr {
    top: 0;
    right: 0;
    border-top: 2px solid rgba(42, 246, 255, 0.4);
    border-right: 2px solid rgba(42, 246, 255, 0.4);
}

.corner-bl {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid rgba(42, 246, 255, 0.4);
    border-left: 2px solid rgba(42, 246, 255, 0.4);
}

.corner-br {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid rgba(42, 246, 255, 0.4);
    border-right: 2px solid rgba(42, 246, 255, 0.4);
}

/* ──────────────────────────────────
   CARD HEADER
   ────────────────────────────────── */
.card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(42, 246, 255, 0.08);
    border: 1px solid rgba(42, 246, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.header-icon i {
    font-size: 24px;
    color: #2af6ff;
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    color: #2af6ff;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.85rem;
    color: rgba(220, 231, 255, 0.5);
}

/* ──────────────────────────────────
   FORM ELEMENTS
   ────────────────────────────────── */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(220, 231, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(5, 7, 15, 0.8);
    border: 1px solid rgba(42, 246, 255, 0.15);
    border-radius: 8px;
    color: #dce7ff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: rgba(42, 246, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(42, 246, 255, 0.1);
}

.password-field {
    position: relative;
}

.password-field .form-input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    color: rgba(220, 231, 255, 0.4);
    padding: 0.25rem;
}

.toggle-password i:last-child {
    display: none;
}

.toggle-password.active i:first-child {
    display: none;
}

.toggle-password.active i:last-child {
    display: block;
}

/* ──────────────────────────────────
   FORM OPTIONS
   ────────────────────────────────── */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
    accent-color: #2af6ff;
}

.checkbox-label {
    font-size: 0.85rem;
    color: rgba(220, 231, 255, 0.7);
}

.forgot-link {
    font-size: 0.85rem;
    color: #2af6ff;
    text-decoration: none;
}

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

/* ──────────────────────────────────
   BUTTONS
   ────────────────────────────────── */
.submit-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, rgba(42, 246, 255, 0.15), rgba(42, 246, 255, 0.05));
    border: 1px solid rgba(42, 246, 255, 0.3);
    border-radius: 8px;
    color: #2af6ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background: linear-gradient(135deg, rgba(42, 246, 255, 0.25), rgba(42, 246, 255, 0.1));
    border-color: rgba(42, 246, 255, 0.5);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ──────────────────────────────────
   FORM DIVIDER
   ────────────────────────────────── */
.form-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(42, 246, 255, 0.1);
}

.form-divider span {
    font-size: 0.75rem;
    color: rgba(220, 231, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ──────────────────────────────────
   SOCIAL BUTTONS
   ────────────────────────────────── */
.social-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(5, 7, 15, 0.6);
    border: 1px solid rgba(42, 246, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(220, 231, 255, 0.6);
}

.social-btn:hover {
    border-color: rgba(42, 246, 255, 0.3);
    color: #2af6ff;
    background: rgba(42, 246, 255, 0.05);
}

.social-btn i {
    font-size: 20px;
}

/* ──────────────────────────────────
   CARD FOOTER
   ────────────────────────────────── */
.card-footer {
    text-align: center;
}

.card-footer p {
    font-size: 0.85rem;
    color: rgba(220, 231, 255, 0.5);
}

.card-footer a {
    color: #2af6ff;
    text-decoration: none;
}

.card-footer a:hover {
    text-decoration: underline;
}

/* ──────────────────────────────────
   ERROR / SUCCESS MESSAGES
   ────────────────────────────────── */
.error-message {
    display: none;
    padding: 0.75rem 1rem;
    background: rgba(255, 58, 152, 0.1);
    border: 1px solid rgba(255, 58, 152, 0.3);
    border-radius: 8px;
    color: #ff3a98;
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 1rem;
}

.error-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.success-message {
    display: none;
    padding: 0.75rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #22c55e;
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 1rem;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ──────────────────────────────────
   PASSWORD STRENGTH
   ────────────────────────────────── */
.password-strength {
    margin-bottom: 1rem;
}

.strength-bar {
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    background: #2af6ff;
    border-radius: 2px;
    transition: width 0.3s;
}

/* ──────────────────────────────────
   BOTTOM TEXT
   ────────────────────────────────── */
.bottom-text {
    text-align: center;
    margin-top: 1.5rem;
}

.bottom-text p {
    font-size: 0.75rem;
    color: rgba(220, 231, 255, 0.3);
    font-family: 'JetBrains Mono', monospace;
}

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

/* ──────────────────────────────────
   RESPONSIVE
   ────────────────────────────────── */
@media (max-width: 1023px) {
    .branding-panel {
        display: none;
    }
    
    .form-panel {
        max-width: 100%;
    }
}

/* ──────────────────────────────────
   UTILITY
   ────────────────────────────────── */
.hidden {
    display: none !important;
}

.lg\:flex {
    display: flex;
}

@media (min-width: 1024px) {
    .lg\:flex {
        display: flex !important;
    }
}

.lg\:hidden {
    display: none;
}

@media (min-width: 1024px) {
    .lg\:hidden {
        display: none !important;
    }
}
