@import url('common.css');

/* General Layout & Theme */
:root {
    --color-primary: #6750a4; /* Deep Purple */
    --color-on-primary: #ffffff;
    --color-surface: #f9f9f9; /* Light M3 background */
    --color-surface-container: #ffffff; /* Card background */
    --color-outline: #79747e; /* M3 outline color */
    --color-error: #b3261e;
    --font-family: 'Roboto', sans-serif;
}

body {
    font-family: 'Inter', sans-serif;
    /* Le corps de la page est gris clair */
    background-color: #f3f4f6; /* gray-100 */
}

/* Ensure body uses a flexible, centered layout for the auth page */
.auth-page-body {
    background-color: var(--color-surface);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 0;
}

/* Auth Card Container */
.auth-container {
    width: 100%;
    max-width: 420px; /* Standard phone/small tablet width for focus */
    background-color: var(--color-surface-container);
    padding: 32px;
    border-radius: 20px; /* More modern, larger border radius */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Elevated shadow */
    transition: transform 0.3s ease;
}

    /* Typography */
    .auth-container h2 {
        color: var(--color-primary);
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 24px;
        text-align: center;
    }

/* Input Fields (M3 Outline Style) */
.form-floating input:focus,
.form-floating input:valid,
.form-floating input:not(:placeholder-shown) {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 1px var(--color-primary) !important;
}

.form-floating input {
    height: 64px !important;
    border-radius: 12px;
    border-color: var(--color-outline);
    padding-top: 24px;
    padding-bottom: 8px;
}

.form-floating label {
    padding-top: 10px;
    color: var(--color-outline);
}

/* Buttons */
.btn-primary {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-on-primary) !important;
    font-weight: 500;
    height: 50px;
    border-radius: 10px;
    transition: background-color 0.2s;
}

    .btn-primary:hover {
        background-color: #5b3e94 !important; /* Slightly darker hover */
    }

.btn-link {
    color: var(--color-primary) !important;
    font-weight: 500;
    text-decoration: none;
}

    .btn-link:hover {
        text-decoration: underline;
    }

/* Utility for links/messages below the form */
.auth-footer-links {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

    .auth-footer-links a {
        color: var(--color-primary);
    }

.auth-container {
    width: 100%;
    max-width: 420px;
    background-color: var(--color-surface-container);
    padding: 40px 32px;
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vortex-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.vortex-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: vortex-spin 2s linear infinite;
    animation-delay: var(--delay);
}

@keyframes vortex-spin {
    from {
        transform: rotate(0deg) scale(0.5);
        opacity: 1;
    }

    to {
        transform: rotate(360deg) scale(3);
        opacity: 0;
    }
}