/* Variables de couleurs inspirées du faire-part */
:root {
    --rose-poudre: #D4B5A8;
    --vert-sauge: #7A9B8E;
    --vert-fonce: #5A7A6E;
    --beige-clair: #F5EDE4;
    --brun-texte: #6B5B52;
    --blanc: #FFFFFF;
    --gris-clair: #F8F9FA;
    --gris-moyen: #DEE2E6;
    --gris-fonce: #495057;
    --danger: #DC3545;
    --success: #28A745;
    
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--brun-texte);
    background-color: var(--beige-clair);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.3;
}

/* Page de connexion */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.floral-decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><g fill="%23D4B5A8" opacity="0.15"><ellipse cx="50" cy="100" rx="30" ry="15" transform="rotate(-45 50 100)"/><ellipse cx="100" cy="50" rx="30" ry="15" transform="rotate(45 100 50)"/><ellipse cx="150" cy="100" rx="30" ry="15" transform="rotate(-45 150 100)"/><ellipse cx="100" cy="150" rx="30" ry="15" transform="rotate(45 100 150)"/><circle cx="100" cy="100" r="20" fill="%237A9B8E"/></g></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

.floral-decoration.top-left {
    top: -100px;
    left: -100px;
}

.floral-decoration.bottom-right {
    bottom: -100px;
    right: -100px;
    transform: rotate(180deg);
}

.login-card {
    background: var(--blanc);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.wedding-header {
    text-align: center;
    margin-bottom: 2rem;
}

.couple-names {
    font-size: 2.5rem;
    color: var(--vert-sauge);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.wedding-date {
    font-size: 1rem;
    color: var(--rose-poudre);
    font-weight: 300;
    letter-spacing: 1px;
}

.divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, var(--rose-poudre), var(--vert-sauge));
    margin: 1.5rem auto;
}

.login-card h2 {
    font-size: 1.5rem;
    color: var(--brun-texte);
    text-align: center;
    margin-bottom: 0.5rem;
}

.welcome-text {
    text-align: center;
    color: var(--gris-fonce);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Formulaires */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--brun-texte);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control,
input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gris-moyen);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
    background-color: var(--blanc);
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--vert-sauge);
    box-shadow: 0 0 0 3px rgba(122, 155, 142, 0.1);
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--gris-fonce);
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--vert-sauge);
    color: var(--blanc);
}

.btn-primary:hover {
    background: var(--vert-fonce);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--rose-poudre);
    color: var(--blanc);
}

.btn-secondary:hover {
    background: #C5A599;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--vert-sauge);
    border: 2px solid var(--vert-sauge);
}

.btn-outline:hover {
    background: var(--vert-sauge);
    color: var(--blanc);
}

.btn-icon {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--gris-fonce);
    transition: all 0.3s ease;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--gris-clair);
    color: var(--vert-sauge);
}

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

button[type="submit"] {
    width: 100%;
    margin-top: 1rem;
}

/* Alertes */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.alert-success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.alert-info {
    background-color: #D1ECF1;
    color: #0C5460;
    border: 1px solid #BEE5EB;
}

/* Footer de connexion */
.login-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--gris-fonce);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    text-transform: capitalize;
}

.badge-primary {
    background-color: var(--vert-sauge);
    color: var(--blanc);
}

.badge-secondary {
    background-color: var(--rose-poudre);
    color: var(--blanc);
}

.badge-success {
    background-color: var(--success);
    color: var(--blanc);
}

.badge-danger {
    background-color: var(--danger);
    color: var(--blanc);
}

/* Utilitaires */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--gris-fonce);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 768px) {
    .login-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .couple-names {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }

    .floral-decoration {
        width: 200px;
        height: 200px;
    }
    
    .floral-decoration.top-left {
        top: -50px;
        left: -50px;
    }
    
    .floral-decoration.bottom-right {
        bottom: -50px;
        right: -50px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .couple-names {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .wedding-date {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .floral-decoration {
        opacity: 0.3;
        width: 150px;
        height: 150px;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-control {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
}
