@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Orbitron:wght@500;700;900&display=swap');

:root {
    --brand-main: #ff0055;
    --brand-glow: rgba(255, 0, 85, 0.6);
    --brand-dark: #880022;
    --bg-base: #050505;
    --glass-bg: rgba(15, 15, 18, 0.75);
    --glass-border: rgba(255, 0, 85, 0.2);
    --text-primary: #ffffff;
    --text-muted: #a0a0a0;
    --success: #00ff88;
    --error: #ff3333;
}

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

body.insanity-auth-page {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-base) url('../insanity/hero-insanity.jpg') center/cover no-repeat fixed; /* Wait, it was renamed to hero-insanity.jpg, let me check later, I will just use a generic path and add an overlay */
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

body.insanity-auth-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
}

.insanity-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    perspective: 1000px;
}

.insanity-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 3rem 2.5rem;
    box-shadow: 0 0 40px rgba(255, 0, 85, 0.15), inset 0 0 20px rgba(255, 0, 85, 0.05);
    transform-style: preserve-3d;
    animation: cardEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(40px) rotateX(10deg);
}

@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.insanity-logo {
    display: block;
    text-align: center;
    margin-bottom: 2rem;
}

.insanity-logo img {
    height: 60px;
    filter: drop-shadow(0 0 15px var(--brand-glow));
    animation: pulseLogo 3s infinite alternate;
}

@keyframes pulseLogo {
    0% { filter: drop-shadow(0 0 10px var(--brand-glow)) scale(1); }
    100% { filter: drop-shadow(0 0 25px var(--brand-main)) scale(1.05); }
}

.insanity-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.insanity-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 0 0 10px var(--brand-glow);
    margin-bottom: 0.5rem;
}

.insanity-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.insanity-alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    animation: fadeIn 0.4s ease;
}
.insanity-alert--success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 255, 136, 0.3);
}
.insanity-alert--error {
    background: rgba(255, 51, 51, 0.1);
    color: var(--error);
    border: 1px solid rgba(255, 51, 51, 0.3);
}

.insanity-form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.insanity-form-group label {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-main);
    margin-bottom: 0.5rem;
}

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

.insanity-input-wrap i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: 0.3s ease;
}

.insanity-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1rem 1rem 1rem 3rem;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.insanity-input:focus {
    outline: none;
    border-color: var(--brand-main);
    background: rgba(255, 0, 85, 0.05);
    box-shadow: 0 0 15px var(--brand-glow);
}

.insanity-input:focus + i {
    color: var(--brand-main);
}

.insanity-btn {
    width: 100%;
    background: transparent;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 1.2rem;
    border: 2px solid var(--brand-main);
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.2);
}

.insanity-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--brand-main);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.insanity-btn:hover {
    box-shadow: 0 0 30px var(--brand-glow);
}

.insanity-btn:hover::before {
    transform: scaleX(1);
}

.insanity-links {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
}

.insanity-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.insanity-links a:hover {
    color: var(--brand-main);
    text-shadow: 0 0 10px var(--brand-glow);
}

.insanity-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Brazil Phone Fix */
.insanity-phone-group {
    display: flex;
    gap: 0.5rem;
}
.insanity-phone-prefix {
    background: rgba(0,0,0,0.7);
    border: 1px solid var(--brand-main);
    color: var(--brand-main);
    padding: 0 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 0 10px var(--brand-glow);
}

.insanity-phone-group .insanity-input {
    padding-left: 1rem;
}

/* Code Blocks (Verify) */
.insanity-code-blocks {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 2rem;
}
.insanity-code-blocks input {
    width: 60px;
    height: 70px;
    background: rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 2rem;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s;
}
.insanity-code-blocks input:focus {
    outline: none;
    border-color: var(--brand-main);
    box-shadow: 0 0 20px var(--brand-glow);
    transform: translateY(-5px);
}


/* Select Dropdown Fix */
.insanity-input option {
    background-color: #050505;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
}

/* Modal Styles */
.insanity-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.insanity-modal-overlay.active {
    display: flex;
    opacity: 1;
}
.insanity-modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--brand-main);
    border-radius: 15px;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}
.insanity-modal-overlay.active .insanity-modal-content {
    transform: scale(1);
}
.insanity-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Orbitron';
}
.insanity-modal-close:hover {
    color: var(--brand-main);
}
