/* css/login.css - Stiluri rotunjite "Pill Shape" */

/* 1. IMPORTĂM FONTURILE */
@font-face {
    font-family: 'Grotesk';
    /* Asigură-te că fișierul fontului este în folderul corect */
    src: url('../assets/fonts/grotesk.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Resetare de bază */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    /* Fallback la sans-serif dacă Grotesk nu se încarcă */
    font-family: 'Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
}

/* Wrapper principal */
.auth-page-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* Link-ul ÎNPOI */
.back-home-link {
    position: absolute;
    top: 30px;
    left: 40px;
    text-decoration: none;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}
.back-home-link:hover {
    color: #1c1c1c;
}

/* Cardul Central */
.auth-card-center {
    background: #ffffff;
    width: 100%;
    max-width: 400px; /* Puțin mai îngust pentru aspectul compact */
    padding: 30px;
    border-radius: 30px; /* Card foarte rotunjit */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}
.auth-logo {
    height: 32px;
    margin-bottom: 20px;
}
.auth-header h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #1c1c1c;
}
.auth-header p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

/* === INPUT-URI === */

.form-group {
    width: 100%;
    margin-bottom: 15px;
}

/* Label-ul mic deasupra (Indentat) */
.form-group label {
    font-size: 12px;
    font-family: 'Grotesk', sans-serif;
    color: #475569;
    margin-left: 10px; /* Indentare pentru a se alinia cu curbura inputului */
    margin-bottom: 5px;
    display: block;
    font-weight: 600;
}

/* Input-ul Rotunjit (Pill) */
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form input[type="tel"] {
    width: 100%;
    padding: 12px 20px; /* Padding mai generos pentru aspectul "pill" */

    border: 1px solid #e2e8f0;
    border-radius: 25px; /* ROTUNJIRE MARE */
    background: #f8fafc;

    font-size: 14px;
    font-family: 'Grotesk', sans-serif;
    color: #1c1c1c;
    outline: none;
    transition: all 0.2s ease;
}

/* Efect la focus */
.auth-form input:focus {
    background: #ffffff;
    border-color: #94a3b8;
    box-shadow: 0 0 0 4px rgba(226, 232, 240, 0.5);
}

/* Checkbox-uri și Link-uri */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 5px 25px 5px;
    font-size: 12px;
    color: #64748b;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.checkbox-container input {
    cursor: pointer;
    width: 16px !important;
    height: 16px;
    border-radius: 4px;
    accent-color: #1c1c1c;
}

.forgot-password {
    color: #1c1c1c;
    text-decoration: none;
    font-weight: 600;
}

/* === BUTONUL ROTUNJIT === */
.submit-btn {
    width: 100%;
    padding: 14px 20px;

    background: #1c1c1c;
    color: white;

    border: none;
    border-radius: 25px; /* ROTUNJIRE MARE */

    font-size: 14px;
    font-family: 'Grotesk', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.submit-btn:hover {
    opacity: 0.9;
}
.submit-btn:active {
    transform: scale(0.98);
}

/* Footer Links */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 13px;
    color: #94a3b8;
}
.auth-footer a {
    color: #1c1c1c;
    font-weight: 700;
    text-decoration: none;
}

.auth-copyright {
    margin-top: 40px;
    font-size: 11px;
    color: #cbd5e1;
}

/* Stil pentru link-ul de Termeni */
.terms-link {
    color: #1c1c1c;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid #e2e8f0;
    transition: border-color 0.2s;
}
.terms-link:hover {
    border-bottom-color: #1c1c1c;
}

/* Responsive */
@media (max-width: 600px) {
    .auth-page-wrapper {
        background: white;
        padding: 0;
    }
    .auth-card-center {
        border: none;
        box-shadow: none;
        padding: 20px;
        padding-top: 80px;
        border-radius: 0;
    }
    .back-home-link {
        top: 20px;
        left: 20px;
    }
}
