:root {
    --forelite-50: #f0f9f4;
    --forelite-100: #dcf2e4;
    --forelite-200: #bce5cd;
    --forelite-300: #8dd1a8;
    --forelite-400: #56b67c;
    --forelite-500: #38755B;
    --forelite-600: #2d5e47;
    --forelite-700: #244a3a;
    --forelite-800: #1f3d30;
    --forelite-900: #1a3329;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, var(--forelite-50) 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2338755B' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 3rem 1rem;
}

.login-card {
    width: 100%;
    max-width: 28rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    animation: fadeIn 0.5s ease-in-out;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-forelite {
    height: 100px;
    width: auto;
    margin-bottom: 1.5rem;
    animation: bounceGentle 2s infinite;
}

.title {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.subtitle {
    color: #6b7280;
    font-size: 1.125rem;
    font-weight: 400;
}

.login-button {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--forelite-500), var(--forelite-600));
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: 1.5rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    box-shadow: 0 10px 25px -5px rgba(56, 117, 91, 0.3);
    overflow: hidden;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--forelite-600), var(--forelite-700));
    border-radius: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(56, 117, 91, 0.4);
}

.login-button:hover::before {
    opacity: 1;
}

.login-button:active {
    transform: translateY(0) scale(0.98);
}

.login-button i {
    font-size: 1.5rem;
    margin-right: 1rem;
    position: relative;
    z-index: 2;
}

.login-button span {
    position: relative;
    z-index: 2;
}

.info-text {
    text-align: center;
    margin-top: 1rem;
}

.info-text p {
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer {
    text-align: center;
    margin-top: 2rem;
}

.footer p {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceGentle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Responsive - Tablettes */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }
    
    .login-card {
        padding: 1.75rem;
        max-width: 26rem;
    }
    
    .logo-forelite {
        height: 80px;
        margin-bottom: 1.25rem;
    }
    
    .title {
        font-size: 1.875rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .login-button {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
}

/* Responsive - Smartphones */
@media (max-width: 640px) {
    .container {
        padding: 1rem 0.75rem;
        min-height: 100vh;
    }
    
    .login-card {
        padding: 1.5rem;
        max-width: 100%;
        margin: 0 0.5rem;
        border-radius: 1.5rem;
    }
    
    .logo-forelite {
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .title {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .subtitle {
        font-size: 0.875rem;
        line-height: 1.4;
    }
    
    .login-button {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        border-radius: 1.25rem;
    }
    
    .login-button i {
        font-size: 1.25rem;
        margin-right: 0.75rem;
    }
    
    .info-text p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .footer p {
        font-size: 0.75rem;
    }
}

/* Responsive - Très petits smartphones */
@media (max-width: 480px) {
    .container {
        padding: 0.75rem 0.5rem;
    }
    
    .login-card {
        padding: 1.25rem;
        margin: 0 0.25rem;
        border-radius: 1.25rem;
    }
    
    .logo-forelite {
        height: 60px;
        margin-bottom: 0.875rem;
    }
    
    .title {
        font-size: 1.375rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .login-button {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
        border-radius: 1rem;
    }
    
    .login-button i {
        font-size: 1.125rem;
        margin-right: 0.625rem;
    }
    
    .info-text p {
        font-size: 0.75rem;
    }
}

/* Responsive - Orientation paysage sur mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: 0.5rem;
        min-height: 100vh;
    }
    
    .login-card {
        padding: 1rem;
        max-width: 90%;
    }
    
    .logo-forelite {
        height: 50px;
        margin-bottom: 0.5rem;
    }
    
    .title {
        font-size: 1.25rem;
        margin-bottom: 0.125rem;
    }
    
    .subtitle {
        font-size: 0.75rem;
    }
    
    .login-button {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .login-button i {
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    .info-text {
        margin-top: 0.5rem;
    }
    
    .info-text p {
        font-size: 0.7rem;
    }
    
    .footer {
        margin-top: 1rem;
    }
    
    .footer p {
        font-size: 0.7rem;
    }
}

/* Focus styles for accessibility */
.login-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(56, 117, 91, 0.2);
}

/* Amélioration pour les écrans tactiles */
@media (hover: none) and (pointer: coarse) {
    .login-button:hover {
        transform: none;
        box-shadow: 0 10px 25px -5px rgba(56, 117, 91, 0.3);
    }
    
    .login-button:active {
        transform: scale(0.98);
        box-shadow: 0 5px 15px -3px rgba(56, 117, 91, 0.4);
    }
}

/* Styles pour le lien de documentation mobile */
.mobile-doc-link {
    margin-top: 1.5rem;
    animation: slideInUp 0.6s ease-out 0.3s both;
}

.doc-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(56, 117, 91, 0.05), rgba(56, 117, 91, 0.1));
    border: 1px solid rgba(56, 117, 91, 0.2);
    border-radius: 1rem;
    text-decoration: none;
    color: var(--forelite-600);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.doc-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.doc-link:hover::before {
    left: 100%;
}

.doc-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(56, 117, 91, 0.2);
    border-color: rgba(56, 117, 91, 0.3);
    background: linear-gradient(135deg, rgba(56, 117, 91, 0.08), rgba(56, 117, 91, 0.15));
}

.doc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--forelite-500), var(--forelite-600));
    border-radius: 0.75rem;
    margin-right: 1rem;
    position: relative;
    z-index: 2;
}

.doc-icon i {
    font-size: 1.125rem;
    color: white;
}

.doc-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.doc-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--forelite-700);
    margin-bottom: 0.125rem;
}

.doc-subtitle {
    font-size: 0.8rem;
    color: var(--forelite-500);
    font-weight: 500;
}

.doc-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background: rgba(56, 117, 91, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.doc-link:hover .doc-arrow {
    background: rgba(56, 117, 91, 0.2);
    transform: scale(1.1);
}

.doc-arrow i {
    font-size: 0.75rem;
    color: var(--forelite-600);
}

/* Animation pour l'apparition du lien */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive pour le lien mobile */
@media (max-width: 640px) {
    .mobile-doc-link {
        margin-top: 1.25rem;
    }
    
    .doc-link {
        padding: 0.875rem 1rem;
        border-radius: 0.875rem;
    }
    
    .doc-icon {
        width: 2.25rem;
        height: 2.25rem;
        margin-right: 0.875rem;
        border-radius: 0.625rem;
    }
    
    .doc-icon i {
        font-size: 1rem;
    }
    
    .doc-title {
        font-size: 0.875rem;
    }
    
    .doc-subtitle {
        font-size: 0.75rem;
    }
    
    .doc-arrow {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .doc-arrow i {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .mobile-doc-link {
        margin-top: 1rem;
    }
    
    .doc-link {
        padding: 0.75rem 0.875rem;
        border-radius: 0.75rem;
    }
    
    .doc-icon {
        width: 2rem;
        height: 2rem;
        margin-right: 0.75rem;
        border-radius: 0.5rem;
    }
    
    .doc-icon i {
        font-size: 0.875rem;
    }
    
    .doc-title {
        font-size: 0.8rem;
    }
    
    .doc-subtitle {
        font-size: 0.7rem;
    }
}

/* Focus pour l'accessibilité */
.doc-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 117, 91, 0.2);
}

/* Amélioration pour les écrans tactiles */
@media (hover: none) and (pointer: coarse) {
    .doc-link:hover {
        transform: none;
        box-shadow: none;
    }
    
    .doc-link:active {
        transform: scale(0.98);
        background: linear-gradient(135deg, rgba(56, 117, 91, 0.1), rgba(56, 117, 91, 0.2));
    }
}

/* Lien d'aide mobile - Design simple et élégant */
.mobile-help {
    margin-top: 1.5rem;
    text-align: center;
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

.mobile-help a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(56, 117, 91, 0.08);
    border: 1px solid rgba(56, 117, 91, 0.2);
    border-radius: 0.75rem;
    color: var(--forelite-600);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mobile-help a:hover {
    background: rgba(56, 117, 91, 0.12);
    border-color: rgba(56, 117, 91, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 117, 91, 0.15);
}

.mobile-help a i:first-child {
    color: var(--forelite-500);
    font-size: 1rem;
}

.mobile-help a i:last-child {
    color: var(--forelite-400);
    font-size: 0.75rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .mobile-help {
        margin-top: 1.25rem;
    }
    
    .mobile-help a {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
        border-radius: 0.625rem;
    }
    
    .mobile-help a i:first-child {
        font-size: 0.875rem;
    }
    
    .mobile-help a i:last-child {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .mobile-help a {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Focus pour l'accessibilité */
.mobile-help a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 117, 91, 0.2);
}

/* Amélioration pour les écrans tactiles */
@media (hover: none) and (pointer: coarse) {
    .mobile-help a:hover {
        transform: none;
        box-shadow: none;
    }
    
    .mobile-help a:active {
        transform: scale(0.98);
        background: rgba(56, 117, 91, 0.15);
    }
}

/* Carte de mise à jour mobile - Design premium */
.mobile-update-card {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(56, 117, 91, 0.06), rgba(56, 117, 91, 0.12));
    border: 1px solid rgba(56, 117, 91, 0.15);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out 0.3s both;
}

.mobile-update-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(56, 117, 91, 0.02), rgba(56, 117, 91, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-update-card:hover::before {
    opacity: 1;
}

.mobile-update-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(56, 117, 91, 0.2);
    border-color: rgba(56, 117, 91, 0.25);
}

.update-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--forelite-500), var(--forelite-600));
    border-radius: 0.75rem;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.update-icon i {
    font-size: 1.125rem;
    color: white;
}

.update-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.update-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--forelite-700);
    margin: 0 0 0.125rem 0;
    line-height: 1.3;
}

.update-content p {
    font-size: 0.8rem;
    color: var(--forelite-500);
    margin: 0;
    font-weight: 500;
}

.update-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: rgba(56, 117, 91, 0.1);
    border-radius: 50%;
    color: var(--forelite-600);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.update-link:hover {
    background: rgba(56, 117, 91, 0.2);
    transform: scale(1.1);
    color: var(--forelite-700);
}

.update-link i {
    font-size: 0.75rem;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .mobile-update-card {
        margin-top: 1.25rem;
        padding: 0.875rem 1rem;
        gap: 0.875rem;
        border-radius: 0.875rem;
    }
    
    .update-icon {
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 0.625rem;
    }
    
    .update-icon i {
        font-size: 1rem;
    }
    
    .update-content h4 {
        font-size: 0.875rem;
    }
    
    .update-content p {
        font-size: 0.75rem;
    }
    
    .update-link {
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .update-link i {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .mobile-update-card {
        padding: 0.75rem 0.875rem;
        gap: 0.75rem;
        border-radius: 0.75rem;
    }
    
    .update-icon {
        width: 2rem;
        height: 2rem;
        border-radius: 0.5rem;
    }
    
    .update-icon i {
        font-size: 0.875rem;
    }
    
    .update-content h4 {
        font-size: 0.8rem;
    }
    
    .update-content p {
        font-size: 0.7rem;
    }
}

/* Focus pour l'accessibilité */
.update-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 117, 91, 0.2);
}

/* Amélioration pour les écrans tactiles */
@media (hover: none) and (pointer: coarse) {
    .mobile-update-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .mobile-update-card:active {
        transform: scale(0.98);
    }
    
    .update-link:hover {
        transform: none;
    }
    
    .update-link:active {
        transform: scale(0.95);
    }
}

/* Notice mobile - Design minimaliste et élégant */
.mobile-notice {
    margin-top: 1.5rem;
    text-align: center;
}

.mobile-notice a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(56, 117, 91, 0.05);
    border: 1px solid rgba(56, 117, 91, 0.15);
    border-radius: 2rem;
    color: var(--forelite-600);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.mobile-notice a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.mobile-notice a:hover::before {
    left: 100%;
}

.mobile-notice a:hover {
    background: rgba(56, 117, 91, 0.08);
    border-color: rgba(56, 117, 91, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(56, 117, 91, 0.1);
}

.notice-icon {
    font-size: 1rem;
    opacity: 0.8;
}

.notice-text {
    font-weight: 500;
    color: var(--forelite-700);
}

.notice-arrow {
    font-size: 0.875rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.mobile-notice a:hover .notice-arrow {
    transform: translateX(2px);
}

/* Responsive */
@media (max-width: 640px) {
    .mobile-notice {
        margin-top: 1.25rem;
    }
    
    .mobile-notice a {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
        border-radius: 1.5rem;
    }
    
    .notice-icon {
        font-size: 0.875rem;
    }
    
    .notice-arrow {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .mobile-notice a {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }
    
    .notice-text {
        font-size: 0.75rem;
    }
}

/* Focus pour l'accessibilité */
.mobile-notice a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 117, 91, 0.2);
}

/* Amélioration pour les écrans tactiles */
@media (hover: none) and (pointer: coarse) {
    .mobile-notice a:hover {
        transform: none;
        box-shadow: none;
    }
    
    .mobile-notice a:active {
        transform: scale(0.98);
        background: rgba(56, 117, 91, 0.1);
    }
}
