@import url('https://fonts.googleapis.com/css?family=Raleway:400,700');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;  
    font-family: Raleway, sans-serif;
}

body {
    background: url("../img/contratos.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.screen {       
    background: linear-gradient(90deg, #f7f7f7, #cccccc);     
    position: relative; 
    height: 600px;
    width: 360px; 
    box-shadow: 0px 0px 24px #333333;
}

.screen__content {
    z-index: 1;
    position: relative; 
    height: 100%;
}

.screen__background {       
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    clip-path: inset(0 0 0 0);  
}

.screen__background__shape {
    transform: rotate(45deg);
    position: absolute;
}

.screen__background__shape1 {
    height: 520px;
    width: 520px;
    background: #FFF;  
    top: -50px;
    right: 120px; 
    border-radius: 0 72px 0 0;
}

.screen__background__shape2 {
    height: 220px;
    width: 220px;
    background: #02245A;  
    top: -172px;
    right: 0;  
    border-radius: 32px;
}

.screen__background__shape3 {
    height: 540px;
    width: 190px;
    background: linear-gradient(270deg, #02245A, #8F181F);
    top: -24px;
    right: 0;  
    border-radius: 32px;
}

.screen__background__shape4 {
    height: 318px;
    width: 219px;
    background: #02245A;
    top: 420px;
    right: 14px;
    border-radius: 60px;
}

.login {
    width: 320px;
    padding: 30px;
    padding-top: 156px;
}

.login__field {
    padding: 20px 0px;   
    position: relative;  
}

.login__icon {
    position: absolute;
    top: 30px;
    color: #19170E;
}

.login__input {
    border: none;
    border-bottom: 2px solid #D1D1D4;
    background: none;
    padding: 10px;
    padding-left: 24px;
    font-weight: 800;
    width: 75%;
    transition: .2s;
}

.login__input:active,
.login__input:focus,
.login__input:hover {
    outline: none;
    border-bottom-color: #19170E;
}

.login__submit {
    background: #fff;
    font-size: 14px;
    margin-top: 30px;
    padding: 16px 20px;
    border-radius: 26px;
    border: 1px solid #D4D3E8;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: center;
    width: 100%;
    color: #19170E;
    box-shadow: 0px 2px 2px #19170E;
    cursor: pointer;
    transition: .2s;
}

.login__submit:active,
.login__submit:focus,
.login__submit:hover {
    border-color: #19170E;
    outline: none;
}

.social-login {
    position: absolute;
    height: 87px;
    width: 135px;
    text-align: center;
    bottom: 453px;
    right: 194px;
    color: #fff;
}

.social-login2 {
    position: absolute;
    height: 29px;
    width: 124px;
    text-align: center;
    bottom: -87px;
    right: 15px;
    color: #fff;
    padding-top: 25px;
}

.button2 {
    padding: 10px 20px;
    margin: 4px;
    font-size: 16px;
    color:#393939;
    background-color:#E7E3E3;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.button2:hover {
    background-color: #19170E; /* Dark blue */
    transform: scale(1.1);
    color: #FFFFFF;
}

.button2:active {
    background-color: #FDFDFD; /* Darker blue */
}

.modal {
  display: none; /* Oculta el modal */
  position: fixed; /* Se queda fijo en la pantalla */
  z-index: 1; /* Se sitúa sobre otros elementos */
  left: 0;
  top: 0;
  width: 80%; /* Ancho completo */
  height: 90%; /* Alto completo */
  overflow: auto; /* Habilita scroll si es necesario */
  background-color: rgb(0,0,0); /* Fondo negro con opacidad */
  background-color: rgba(0,0,0,0.4); /* Negro con transparencia */
}

.modal-contenido {
  background-color: #fefefe;
  margin: 2% auto; /* 15% desde la parte superior y centrado */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Podrías ajustar esto según tus necesidades */
}

.cerrar {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.cerrar:hover,
.cerrar:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.marco{
	
	background: #19170E; color: #FFFFFF; padding: 3px; font: bold;
}

.marco2{
	
	background: #FFFFFF; color: #252525; padding: 3px; 
}
/* Media Queries */
@media (max-width: 768px) { /* For tablets */
    .screen {
        width: 90%; /* Adjust width to fit tablets */
        height: auto; /* Auto height to maintain aspect ratio */
    }

    .login {
        padding: 20px;
        padding-top: 100px;
    }
}

@media (max-width: 480px) { /* Para teléfonos móviles */
    .screen {
        width: 100%; /* Utiliza todo el ancho disponible */
		padding: 10px;
		overflow: hidden;
    }
	
	

    .login__field {
        padding: 15px 0px;
    }

    .login__submit {
        padding: 12px 15px;
    }

    .button2 {
        padding: 8px 16px;
        font-size: 14px; /* Un poco más pequeño para caber en pantallas pequeñas */
    }

    .screen__content {
        display: flex;
        flex-direction: column;
    }

    .social-login {
        position: static;
        width: 100%; /* Utiliza todo el ancho */
        order: -1; /* Mueve este elemento al principio */
		padding-top: 50px;
		text-align: left;
		padding-left: 20px;
    }

    .social-login2 {
        position: static; /* Posición estática para que fluyan con el contenido */
        margin-top: 20px;
        margin-bottom: 20px;
        width: 100%; /* Utiliza todo el ancho */
        display: flex;
        justify-content: center; /* Centra el contenido */
        align-items: center; /* Alinea verticalmente */
    }

    .social-login img,
    .social-login2 img {
        max-width: 100%; /* Asegura que las imágenes no sean más grandes que su contenedor */
        height: auto; /* Mantiene la proporción de aspecto */
    }
}
