/**
 * Purple Telecom - Styles pour page de connexion
 * Emplacement : /home/yqqyvar/domains/purpletelecom.fr/dashboard/public_html/assets/css/login-styles.css
 * Permissions : 644
 * Version : 1.0 - CSS externalisé et organisé
 */

/* ======================================== */
/*         IMPORT GOOGLE FONTS              */
/* ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ======================================== */
/*           RESET ET BASE                  */
/* ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0f172a;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
    color: #f0f9ff;
    position: relative;
}

/* ======================================== */
/*         CONTAINER PRINCIPAL              */
/* ======================================== */
.container {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 10;
}

/* ======================================== */
/*      BACKGROUND ANIMÉ - ORBES            */
/* ======================================== */
.background-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: float 8s ease-in-out infinite;
    mix-blend-mode: screen;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at 30% 30%, 
        rgba(139, 92, 246, 0.8) 0%, 
        rgba(102, 126, 234, 0.4) 40%, 
        transparent 70%);
    top: -10%;
    left: -5%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at 50% 50%, 
        rgba(236, 72, 153, 0.7) 0%, 
        rgba(245, 87, 108, 0.3) 40%, 
        transparent 70%);
    top: 40%;
    right: -5%;
    animation-delay: 2.5s;
}

.orb-3 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle at 70% 70%, 
        rgba(79, 172, 254, 0.6) 0%, 
        rgba(0, 242, 254, 0.3) 40%, 
        transparent 70%);
    bottom: -10%;
    left: 30%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.25;
    }
    25% {
        transform: translateY(-30px) scale(1.05);
        opacity: 0.3;
    }
    50% {
        transform: translateY(20px) scale(0.95);
        opacity: 0.2;
    }
    75% {
        transform: translateY(-10px) scale(1.02);
        opacity: 0.28;
    }
}

/* ======================================== */
/*    TEXTE PARALLAX - FILIGRANE           */
/* ======================================== */
.parallax-text {
    position: fixed;
    width: 300%;
    bottom: 20px;
    left: 0;
    font-size: 12rem;
    font-weight: 900;
    color: rgba(139, 92, 246, 0.06);
    text-transform: uppercase;
    white-space: nowrap;
    animation: scrollText 30s linear infinite;
    pointer-events: none;
    z-index: 1;
    user-select: none;
    line-height: 1;
    height: auto;
    overflow: visible;
}

body.light-mode .parallax-text {
    color: rgba(0, 0, 0, 0.02);
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ======================================== */
/*     LEFT PANEL - DASHBOARD PRO          */
/* ======================================== */
.left-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 20;
    padding: 40px;
    background: transparent;
}

.illustration-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    text-align: center;
    animation: fadeInUp 1s ease forwards;
}

.mega-title {
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 30px;
    letter-spacing: -0.05em;
}

.word-sms {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: colorShift 8s ease infinite;
}

.word-professionnel {
    color: #f0f9ff;
    display: block;
    margin-top: 10px;
}

@keyframes colorShift {
    0%, 100% { 
        filter: hue-rotate(0deg);
        transform: scale(1);
    }
    50% { 
        filter: hue-rotate(30deg);
        transform: scale(1.02);
    }
}

.subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: #e0f2fe;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
    line-height: 1.4;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================================== */
/*         TEXTES ANIMÉS                   */
/* ======================================== */
.animated-text-container {
    height: 100px;
    position: relative;
    margin-top: 50px;
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}

.text-slide {
    position: absolute;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: textCycle 24s infinite;
}

.text-slide h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    line-height: 1.3;
    color: #f0f9ff;
}

.highlight-word {
    background: linear-gradient(135deg, #3498db, #5dade2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-slide:nth-child(1) { animation-delay: 0s; }
.text-slide:nth-child(2) { animation-delay: 3s; }
.text-slide:nth-child(3) { animation-delay: 6s; }
.text-slide:nth-child(4) { animation-delay: 9s; }
.text-slide:nth-child(5) { animation-delay: 12s; }
.text-slide:nth-child(6) { animation-delay: 15s; }
.text-slide:nth-child(7) { animation-delay: 18s; }
.text-slide:nth-child(8) { animation-delay: 21s; }

@keyframes textCycle {
    0%, 12.5% {
        opacity: 0;
        transform: translateY(30px);
    }
    2%, 10.5% {
        opacity: 1;
        transform: translateY(0);
    }
    12.5%, 100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

/* ======================================== */
/*      RIGHT PANEL - CONNEXION            */
/* ======================================== */
.right-panel {
    flex: 0 0 520px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    z-index: 20;
}

.login-container {
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

/* ======================================== */
/*              LOGO                       */
/* ======================================== */
.logo {
    text-align: center;
    margin-bottom: 24px;
}

.logo-text {
    font-size: 36px;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.logo-text .purple-part {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text .telecom-part {
    color: #f0f9ff;
}

.logo-registered {
    font-size: 20px;
    font-weight: 400;
    color: #8b5cf6;
    animation: floatRegistered 4s ease-in-out infinite;
    display: inline-block;
    vertical-align: super;
    margin-left: 3px;
}

@keyframes floatRegistered {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-3px) rotate(5deg);
        opacity: 1;
    }
}

/* ======================================== */
/*         TITRES ET TEXTES                */
/* ======================================== */
h1 {
    font-size: 36px;
    font-weight: 700;
    color: #f0f9ff;
    margin-bottom: 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.login-subtitle {
    text-align: center;
    color: #e0f2fe;
    font-size: 16px;
    margin-bottom: 24px;
    font-weight: 400;
}

/* ======================================== */
/*         BOUTONS SSO                     */
/* ======================================== */
.sso-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.sso-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    color: #f0f9ff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.sso-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sso-button:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: #8b5cf6;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.sso-button:hover::before {
    opacity: 1;
}

.sso-button img {
    width: 24px;
    height: 24px;
}

/* ======================================== */
/*            DIVIDER                      */
/* ======================================== */
.divider {
    text-align: center;
    margin: 24px 0;
    color: #e0f2fe;
    font-size: 12px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 40px);
    height: 1px;
    background: rgba(139, 92, 246, 0.3);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

/* ======================================== */
/*      EMAIL COMING SOON                  */
/* ======================================== */
.email-coming-soon {
    text-align: center;
    padding: 12px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    color: #e0f2fe;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* ======================================== */
/*         FOOTER LINKS                    */
/* ======================================== */
.footer-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #e0f2fe;
}

.footer-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #5dade2;
    text-decoration: underline;
}

/* ======================================== */
/*         FOOTER PURPLE                   */
/* ======================================== */
.purple-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    text-align: center;
}

.footer-text {
    font-size: 0.75rem;
    color: #e0f2fe;
    line-height: 1.4;
}

.footer-powered {
    font-weight: 600;
}

.footer-powered a {
    color: #8b5cf6;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-powered a:hover {
    opacity: 0.7;
}

.footer-subtitle {
    font-size: 0.625rem;
    margin-top: 0.25rem;
    opacity: 0.8;
}

.footer-copyright {
    font-size: 0.625rem;
    margin-top: 0.5rem;
    opacity: 0.6;
}

/* ======================================== */
/*         THEME SWITCHER                  */
/* ======================================== */
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-selector {
    display: flex;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    padding: 4px;
    gap: 3px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

body.light-mode .theme-selector {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1);
}

.theme-option {
    width: 36px;
    height: 36px;
    padding: 8px;
    background: transparent;
    border: none;
    border-radius: 50px;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.light-mode .theme-option {
    color: #64748b;
}

.theme-option svg {
    width: 20px;
    height: 20px;
}

.theme-option:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    transform: scale(1.1);
}

body.light-mode .theme-option:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.theme-option.active {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

body.light-mode .theme-option.active {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
}

/* ======================================== */
/*         LIGHT MODE OVERRIDES            */
/* ======================================== */
body.light-mode {
    background: #ffffff;
    color: #203859;
}

body.light-mode .gradient-orb {
    opacity: 0.3;
}

body.light-mode .word-professionnel {
    color: #203859;
}

body.light-mode .subtitle {
    color: #4a4a6a;
}

body.light-mode .text-slide h3 {
    color: #203859;
}

body.light-mode .right-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(155, 89, 182, 0.15);
    box-shadow: -10px 0 30px rgba(155, 89, 182, 0.08);
}

body.light-mode .logo-text .telecom-part {
    color: #203859;
}

body.light-mode h1 {
    color: #203859;
}

body.light-mode .login-subtitle {
    color: #4a4a6a;
}

body.light-mode .sso-button {
    background: #ffffff;
    border: 1px solid rgba(155, 89, 182, 0.15);
    color: #203859;
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.08);
}

body.light-mode .sso-button:hover {
    background: #f3e5f5;
    border-color: #8b5cf6;
    box-shadow: 0 10px 25px rgba(155, 89, 182, 0.12);
}

body.light-mode .divider {
    color: #4a4a6a;
}

body.light-mode .divider::before,
body.light-mode .divider::after {
    background: rgba(155, 89, 182, 0.15);
}

body.light-mode .email-coming-soon {
    background: #e8daef;
    border: 1px solid rgba(155, 89, 182, 0.15);
    color: #4a4a6a;
}

body.light-mode .footer-links {
    color: #4a4a6a;
}

body.light-mode .purple-footer {
    border-top-color: rgba(155, 89, 182, 0.15);
}

body.light-mode .footer-text {
    color: #4a4a6a;
}

body.light-mode .footer-powered a {
    color: #8b5cf6;
}

/* ======================================== */
/*            RESPONSIVE                   */
/* ======================================== */
@media (max-width: 1024px) {
    .left-panel {
        display: none;
    }
    
    .right-panel {
        flex: 1;
        background: rgba(30, 41, 59, 0.9);
    }
    
    .parallax-text {
        font-size: 10rem;
    }
}

@media (max-width: 480px) {
    .right-panel {
        padding: 20px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    .login-container {
        max-width: 100%;
    }

    .mega-title {
        font-size: 3rem;
    }
    
    .parallax-text {
        font-size: 6rem;
    }
}