﻿:root {
    --clr-input-bg: #cccaca;
}

html{
    min-height: 100%;
}


body {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 20px;
    margin: 0;
    padding: 0;
    min-height: 100svh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: #1A63AD;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none !important;
} 

.cm_login-header {
    justify-self: start;
    padding: 15px 50px 20px 15px;
    background-color: white;
    border-bottom-right-radius: 90px;
}

.cm_login-container {
    display: grid;
    justify-items: center;
    gap: 16px;
    width: 100%;
    max-width: 1150px;
    margin-block: auto;
    margin-inline: 64px;
    padding: 64px;
    position: relative;
    justify-self: center;
    overflow: visible;
}

.cm_login-container::before {
    content: "";
    position: absolute;
    z-index: -10;
    inset: 0;
    clip-path: polygon(0% 0%, 36% 100%, 100% 100%, 100% 0%);
    margin-inline: 32px;
    border: 4px solid white;
}

.cm_switchCountry{
    margin-left: auto;
}

.cm_login-central-panel{
    display: grid;
    max-width: 600px;
    gap: 24px;
    padding: 3em;
    border-radius: 8px;
    background-color: rgb(0, 0, 0, 0.5);
}

form{
    display: grid;
    gap: 12px;
}

.cm_field-container {
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--clr-input-bg);
}

.cm_field-container:has(input:focus){
    outline: 3px solid #1A63AD;
}

input {
    width: 100%;
    padding: 8px;
    border: none;
    color: black;
    background-color: transparent;
}

input:is(:hover, :focus) {
    outline: none;
}

input::placeholder {
    color: #666; /* Cambia 'gray' por el color que desees */
    opacity: 1; /* Asegura que el color tenga la opacidad completa */
}

input::-ms-input-placeholder { /* Microsoft Edge */
    color: #666;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px var(--clr-input-bg) inset !important;
    box-shadow: 0 0 0px 1000px var(--clr-input-bg) inset !important;
    -webkit-text-fill-color: black !important;
    /*    border-radius: 15px !important;
border-collapse: separate;*/
}

.cm_pass-wrapper{
    display: flex;
    align-items: center;
    gap: 4px;
    padding-right: 4px;
}

form button {
    width: 30px;
    aspect-ratio: 1 /1;
    border-radius: 50%;
    border: none;
    background-color: #aaa;
}

form button:is(:hover, :focus) {
    background-color: white;
}

.borderCircle {
    border-radius: 50%;
    behavior: url(PIE.htc);
    /* remove if you don't care about IE8 */
    width: 100px;
    height: 100px;
    background: transparent;
    border: 2px solid white;
    color: white;
    text-align: center;
}


.switchCountry {
    justify-content: flex-end;
    /*grid-row: 1;
    grid-column: 3;*/
    position: absolute;
    top: 10%;
    right: 9%;
    grid-gap: 0px;
    padding-top: 20px;
    text-align: center;
}

.switchCountry a {
    color: white;
    margin-left: 20px;
}

.form {
    vertical-align: central;
    grid-row: 2;
    grid-column: 2;
    margin: auto auto;
}


.form input {
    border: none;
    font-family: Arial, Helvetica, sans-serif;
    background: transparent;
    color: white;
    font-size: 14px;
}

#username {
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
}

#password {
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

#submit {
    width: 30px;
    height: 40px;
    line-height: 40px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
}

.form button {
    position: relative;
    top: 1px;
    right: 4px;
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: 2px solid white;
    cursor: pointer;
    color: white;
}

.form button:hover, .form button:active, .form button:focus {
    /*background: #2a7cbd;*/
    background-color: #9e9e9e;
}

.form .message {
    margin: 15px 0 0;
    color: #b3b3b3;
    font-size: 12px;
}

.form .message a {
    color: #4CAF50;
    text-decoration: none;
}

.form .register-form {
    display: none;
}

@media screen and (max-width: 480px){

    .cm_login-container {
        padding: 22px;
    }

    .cm_login-container::before {
        margin-inline: 8px;
    }

    .cm_switchCountry img {
        width: 50px;
    }

    .cm_login-central-panel{
        padding: 1em;
    }
}
