﻿@import url("https://fonts.googleapis.com/css?family=Raleway:400,700");

* {
  box-sizing: border-box;
  margin: 2px;
  padding: -6px;
  font-family: Raleway, sans-serif;
}
body {
    font-family: 'Heebo', sans-serif;
    background-image: url('../template/img/loginpage.png');
    background-position: 18% center;
    background-repeat: no-repeat;
    background-attachment: scroll; 
    background-size: contain;
    min-height: 100vh;
    margin: 0;
    background-color: var(--light-color);
}

.container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 100vh;
    overflow: hidden;
    padding-right: 16%;
    margin-top: -20px;
    position: relative; 
}

.screen {
    background: #FFD700;
    position: relative;
    height: 600px;
    width: 360px;
    box-shadow: 0px 0px 24px #5c5696;
}

.screen__content {
  z-index: 1;
  position: relative;
  height: 100%;
}

.screen__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  -webkit-clip-path: inset(0 0 0 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: #001d45;
    top: -172px;
    right: 0;
    border-radius: 32px;
}

.screen__background__shape3 {
    height: 540px;
    width: 190px;
    background: linear-gradient(270deg, #001d45,#001d45);
    top: -24px;
    right: 0;
    border-radius: 32px;
}

.screen__background__shape4 {
    height: 400px;
    width: 200px;
    background: #001d45;
    top: 420px;
    right: 50px;
    border-radius: 60px;
}

.login {
  width: 320px;
  padding: 30px;
  padding-top: 156px;
}

.login__field {
    padding: 20px 0px;
    position: relative;
    font-size: 22px;
}

.login__icon {
    position: absolute;
    top: 30px;
    color: #001d45;
    font-size: 1.4rem;
}

.login__input {
    border: none;
    border-bottom: 2px solid #FFD700;
    background: none;
    padding: 10px;
    padding-left: 29px;
    font-weight: 700;
    width: 75%;
    font-size: 22px;
    transition: 0.2s;
    outline: none; /* Add this line */
}

    .login__input:-webkit-autofill,
    .login__input:-webkit-autofill:hover,
    .login__input:-webkit-autofill:focus,
    .login__input:-webkit-autofill:active {
        -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
        -webkit-text-fill-color: #000 !important; 
        transition: background-color 5000s ease-in-out 0s !important;
    }

    /* Firefox */
    .login__input:-moz-autofill,
    .login__input:-moz-autofill:hover,
    .login__input:-moz-autofill:focus {
        box-shadow: 0 0 0 1000px transparent inset !important;
        text-fill-color: #000 !important;
    }

.login__submit {
    background: #fff;
    font-size: 22px;
    margin-top: 30px;
    padding: 9px 20px;
    border-radius: 26px;
    border: 1px solid #ffcc00;
    font-weight: 700;
    display: flex;
    align-items: center;
    width: 100%;
    color: #001d45;
    cursor: pointer;
    transition: 0.2s;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

    .login__submit:active,
    .login__submit:focus,
    .login__submit:hover {
        border-color: #ffcc00;  
        outline: none !important;
        box-shadow: 0px 2px 2px #ffcc00 !important;  
    }

.register-prompt {
    margin-top: 15px;
    color: #FFD700;
    font-size: 14px;
}

.register-link {
    color: #FFD700; /* Gold color to match your theme */
    text-decoration: none;
    font-weight: bold;
}

    .register-link:hover {
        text-decoration: underline;
        color: #FFD700;
    }


.button__icon {
  font-size: 24px;
  margin-left: auto;
  color: #7875b5;
}

.social-login {
    position: absolute;
    height: 140px;
    width: 160px;
    text-align: center;
    bottom: -30px;
    right: 3px;
    color: #ffd700;
}

@media (max-width: 480px) {
    body {
        background-image: none !important;
        background-color: white !important;
        background-position: initial;
        background-repeat: initial;
        background-attachment: initial;
        background-size: initial;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 20px;
    }

    .login-container {
        padding: 30px 20px;
        width: 100%;
        max-width: 360px;
        margin: 0 auto; 

    .login-title {
        font-size: 24px;
        margin-bottom: 30px;
        text-align: center; /* Center the title text */
    }

    .login__input {
        font-size: 14px;
        padding: 12px 12px 12px 35px;
        width: 100%; /* Ensure full width */
    }

    .login__submit {
        padding: 12px;
        font-size: 16px;
        width: 100%; /* Ensure full width */
    }
}