/* login CSS */

@import url('https://fonts.googleapis.com/css2?family=Electrolize&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom, #0c0d1a, #1a1b2f);
    color: #e0e6f0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background: rgba(25, 28, 55, 0.95);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(128, 90, 213, 0.4);
    max-width: 420px;
    width: 100%;
}

.login-container h1 {
    color: #a89aff;
    font-family: 'Electrolize', sans-serif;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #b4bde5;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 1.2rem;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: #1d1e2d;
    color: #e0e6f0;
}

input:focus {
    outline: none;
    border-color: #70b1f5;
    box-shadow: 0 0 5px #70b1f5;
}

.login-btn {
    width: 100%;
    padding: 10px;
    background-color: #5d58ee;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #766cf7;
}

.msg {
    margin-top: 1rem;
    text-align: center;
    font-weight: bold;
}

.error {
    color: #f56b6b;
}

.logout {
    color: #35a7ca;
}

/* select dans generate-encryption */

select#generateChoice {
    background: linear-gradient(to right, #6e70ff, #9c61f2);
    color: #fff;
    padding: 10px 16px;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    appearance: none;
    width: 100%;
    max-width: 400px;
    margin-top: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

select#generateChoice option {
    background-color: #1f1f2e;
    color: white;
}

/* copier button */
.copy-btn {
    color: black;
    background-color: rgb(161, 174, 231);
    width: 100%;
    padding: 10px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.copy-btn:hover {
    color: white;
    background-color: #7b8dc9;
}

/* Bouton Menu */

.rift-menu-button-container {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 2rem;
}

.menu-button {
    color: white;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    background: linear-gradient(to right, #6e70ff, #9c61f2);
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    transition: background 0.3s ease;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
    /*display: inline-block;*/
    text-align: center;
    margin-top: 2rem;
}

.menu-button:hover {
    color: white;
    background: linear-gradient(to right, #7c78ff, #b48fff);
    text-decoration: none;
}


/*********
 * TOAST
 */
.toast {
    color: #fff;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    opacity: 0;
    animation: fadeOut 5s ease-out forwards;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.toast-success {
    background-color: #28a745;
}

.toast-error {
    background-color: #d63031;
}

@keyframes fadeOut {
    0%, 80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        display: none;
    }
}


