﻿@charset "utf-8";
@import url('../fontStyle.css');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: iransans-web, 'iransans-web', BKoodak, 'BKoodak', NazaninB, 'NazaninB', 'Tahoma', Tahoma, Arial, Helvetica, sans-serif !important;
    direction: rtl;
    text-decoration:none
}

body {
    display: grid;
   
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow-y:auto;
    background: linear-gradient(to right, #00aaff, #004d99);
}

.register-container {
    background: #1c2b40;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    width: 350px;
    color: white;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    /*position: relative;*/
    /*overflow: hidden;*/
}

    .register-container h2 {
        margin-bottom: 20px;
        color: #ffffff;
        font-size: 24px;
        font-weight: bold;
    }

.input-group {
    position: relative;
    margin-bottom: 35px;
}

    .input-group input {
        width: 100%;
        padding: 12px;
        background: #2b3e50;
        border: 1px solid #4f5b7a;
        border-radius: 10px;
        color: white;
        outline: none;
        transition: border-color 0.3s ease, background 0.3s ease;
        text-align: center;
    }

    .input-group select {
        width: 100%;
        padding: 12px;
        background: #2b3e50;
        border: 1px solid #4f5b7a;
        color: white;
        outline: none;
        transition: border-color 0.3s ease, background 0.3s ease;
        text-align: center;
    }

    .input-group img {
    }

    .input-group input:focus {
        border-color: #00aaff;
        background: #1c2b40;
    }

    .input-group label {
        position: absolute;
        top: 12px;
        right: 12px;
        color: #808db1;
        pointer-events: none;
        transition: 0.3s ease all;
    }

    .input-group input:focus ~ label,
    .input-group input:not(:placeholder-shown) ~ label {
        top: -20px;
        right: 6px;
        font-size: 12px;
        color: #00aaff;
    }

    .input-group select:focus ~ label,
    .input-group select:not(:placeholder-shown) ~ label {
        top: -20px;
        right: 6px;
        font-size: 12px;
        color: #00aaff;
    }

.input-with-button {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

    .input-with-button input {
        width: 55%;
    }

    .input-with-button .actions {
        width: 40%;
    }

.input-group div button img {
    width: 20px;
    height: 20px;
}

.refresh button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    left: 10px;
    top: 30%;
}

.actions .button {
    display:block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #00aaff, #004d99);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.3s ease;
}

    .actions .button:hover {
        background: linear-gradient(to right, #004d99, #00aaff) !important;
        transform: translateY(-2px) !important;
    }

.links {
    margin-top: 20px;
}

    .links a {
        color: #00aaff;
        text-decoration: none;
        font-size: 14px;
        display: block;
        margin: 5px 0;
        transition: color 0.3s ease;
    }

        .links a:hover {
            color: #ffffff;
            text-decoration: underline;
        }

.error {
    margin-top: 50px;
    margin-bottom: 50px;
    background-color: hsl(36, 100%, 68%);
    padding: 20px 10px;
    direction: rtl;
    text-align: center;
    color: white;
}

.input-group img{
    width:100%
}

.button-group{
    display:flex;
    flex-direction:column;
    gap:20px
    
}