/* ===============================
   Reset & Root
=============================== */
* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --bg-color: #EBF7E3;
    --card-bg: #C6E9AF;
    --btn-bg: #E4FBD5;
    --btn-hover: #48a74b;
    --text-color: #eeaf10;
    --text-color-dark: #3e3e3d;
    --error-color: red;
    --success-color: green;
    --box-shadow: 0px 0px 5px rgba(109,108,108,0.5);
}

/* ===============================
   Body
=============================== */
body {
    margin: 0;
    padding: 0;
    
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding-top: 50px;
}

/* ===============================
   Container
=============================== */
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 50%;
    max-width: 900px;
    background: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    justify-items: center;
}

/* ===============================
   Title
=============================== */
.container h2 {
    grid-area: title;
    color: var(--text-color);
    text-align: center;
}

/* ===============================
   Form
=============================== */
.register {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    border-radius: 10px;
    padding: 30px;
    background-color: #C6E9AF;
    box-shadow: inset 0px 0px 5px rgba(109, 108, 108, 0.5);
}

.register input {
    margin: 30px;
    padding: 10px;
    width: 300px;
    border: none;
    border-bottom-style: solid;
    border-color:#EBF7E3;
    background-color: rgba(0, 0, 0,0); 
    outline:none ;
    transition: border-color 0.3s ease;
}

.register input::placeholder{
    text-align: end;
}

.register input:focus {
    border-color: var(--text-color);
    background-color: #f4fdee;
}

.register input:valid {
    border-color: greenyellow;
}

.register input:focus:invalid {
    border-color: var(--error-color);
}

.submitName {
    margin-top: 15px;
    width: 200px;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    background: var(--btn-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: 0.3s;
}

.submitName:hover {
    background: var(--btn-hover);
    color: white;
    box-shadow: var(--box-shadow);
}

.submitNameBackground{
    background-color: var(--card-bg);
}

.google-login{
    background-color: #ffffff;
    display: flex;
    width: 200px;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 5px;
    border-radius: 5px;
    margin-top: 10px;
    cursor: pointer;

}
.google-login a{
    text-decoration: none;
    color: #3e3e3d;
    padding: 5px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    font-weight: bold;
    
}
.google-login:hover{
   box-shadow: var(--box-shadow);
}


/* ===============================
   Enter / Login link
=============================== */
.enter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.enter button {
    width: 200px;
}

/* ===============================
   Messages
=============================== */

.container a{
    
    color: #3e3e3d;
}


.container p {
    grid-area: messages;
    text-align: center;
}

.container p.error {
    color: var(--error-color);
}

.container p.success {
    color: var(--success-color);
}


.resending{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.resending a{
    text-decoration: none;
    
}

.resending a:hover{
    text-decoration: underline;
}
.resending div{
    
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 300px;
    padding: 5px;
}

/* ===============================
   Mobile & Tablet Responsive
=============================== */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "form"
            "messages";
        width: 95%;
        padding: 20px;
        justify-items: center;
        gap: 15px;
    }

    .register,
    .enter {
        width: 100%;
        max-width: 400px;
    }

    .register input,
    .enter button {
        width: 100%;
    }
    
    

    .container h2 {
        font-size: 20px;
    }
}
