/* Pages hors application : connexion, changement de mot de passe. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8fafc;
}

.main-container {
    flex: 1;
    display: flex;
    min-height: calc(100vh - 60px);
}

/* Partie gauche - Illustration */
.illustration-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.illustration-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 148, 17, 0.15) 0%, transparent 70%);
}

.illustration-content {
    text-align: center;
    z-index: 1;
    max-width: 500px;
}

.illustration-icon {
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
    background: linear-gradient(135deg, rgba(255, 148, 17, 0.25) 0%, rgba(255, 148, 17, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.illustration-icon::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border: 2px dashed rgba(255, 148, 17, 0.4);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.mail-icon {
    width: 80px;
    height: 80px;
    fill: #ff9411;
}

.illustration-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.illustration-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Partie droite - Formulaire */
.login-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: #ffffff;
}

.login-content {
    width: 100%;
    max-width: 400px;
}

.logo {
    margin-bottom: 40px;
    text-align: center;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
}

.logo-text span {
    color: #ff9411;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 32px;
}

.error-message {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #f9fafb;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ff9411;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 148, 17, 0.15);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.btn-login {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #ff9411 0%, #f58e10 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: linear-gradient(135deg, #f58e10 0%, #e0820f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 148, 17, 0.35);
}

.btn-login:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background-color: #1a1a2e;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ff9411;
}

.footer-credit {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-credit a {
    color: #ff9411;
    text-decoration: none;
    font-weight: 500;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
    }

    .illustration-section {
        min-height: 300px;
        order: -1;
    }

    .illustration-icon {
        width: 120px;
        height: 120px;
        margin-bottom: 24px;
    }

    .illustration-icon::before {
        width: 100px;
        height: 100px;
    }

    .mail-icon {
        width: 50px;
        height: 50px;
    }

    .illustration-title {
        font-size: 22px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }
}

/* Changement de mot de passe (ticket 8541) */
.info-message {
    background-color: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.back-link {
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    text-decoration: none;
}

.back-link:hover {
    color: #ff9411;
}
