/* register.css */

/* Reset de stiluri */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #6c63ff, #3a3a8b);
    color: #4b4b4b;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    transition: background-color 0.5s, color 0.5s;
}

/* Container principal */
.register-container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
    transition: background-color 0.5s, color 0.5s;
}

.register-container h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #3a3a8b;
}

form {
    display: flex;
    flex-direction: column;
}

form .form-group {
    margin-bottom: 20px;
}

form label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    display: block;
    text-align: left;
}

form input[type="text"],
form input[type="email"],
form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f9f9f9;
    color: #333;
    transition: all 0.3s ease-in-out;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 8px rgba(108, 99, 255, 0.3);
}

form button {
    background: linear-gradient(135deg, #6c63ff, #3a3a8b);
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease-in-out, transform 0.2s ease;
}

form button:hover {
    background: linear-gradient(135deg, #3a3a8b, #6c63ff);
    transform: scale(1.02);
}

/* Link-uri */
form .register-links {
    margin-top: 20px;
}

form .register-links a {
    color: #6c63ff;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

form .register-links a:hover {
    color: #3a3a8b;
    text-decoration: underline;
}

/* Tematică dark */
body.dark {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: #cfcfcf;
}

body.dark .register-container {
    background-color: rgba(26, 26, 46, 0.9);
    color: #cfcfcf;
}

body.dark input {
    background-color: #2e2e4a;
    border-color: #444;
    color: #cfcfcf;
}

body.dark input:focus {
    border-color: #6c63ff;
    box-shadow: 0 0 8px rgba(108, 99, 255, 0.5);
}

body.dark button {
    background: linear-gradient(135deg, #1f1f3d, #3a3a8b);
}

body.dark button:hover {
    background: linear-gradient(135deg, #3a3a8b, #1f1f3d);
}

body.dark a {
    color: #6c63ff;
}

body.dark a:hover {
    color: #3a3a8b;
}

p a:visited {
    color: inherit; /* păstrează culoarea linkului neapărat */
}

p a:focus {
    outline: none; /* elimină linia de focus */
    background-color: transparent; /* evită orice schimbare de fundal */
}

/* Stil general pentru containerul dropdown */
.form-group select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Schimbarea aspectului la hover */
.form-group select:hover {
    border-color: #007bff;
}

/* Schimbarea aspectului la focus */
.form-group select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Adaugă o săgeată custom pentru dropdown */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 1l4 4 4-4"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 6px;
}

/* Setarea unei înălțimi minime */
.form-group select {
    min-height: 40px;
}

/* Stilizare pentru dropdown pe dispozitive mobile */
@media (max-width: 768px) {
    .form-group select {
        font-size: 14px;
        padding: 8px;
    }
}
