@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600&family=Big+Shoulders+Display:wght@700&family=Josefin+Sans:wght@300;400;600&family=Karla:wght@400;700&family=Kumbh+Sans:wght@400;700&family=League+Spartan:wght@400;500;700&family=Lexend+Deca&family=Libre+Franklin:wght@300;600;700&family=Manrope:wght@500;700&family=Open+Sans&family=Poppins:wght@200;400;600&family=Raleway:wght@400;700&display=swap');

:root{
	--primary:hsl(223, 87%, 63%);
	--secondary:hsl(223, 100%, 88%);
	--tertiary:hsl(354, 100%, 66%);
	--white:hsl(0, 0%, 100%);
	--primary-accent:hsl(0, 0%, 59%);
	--secondary-accent:hsl(209, 33%, 12%);
	--soft-edge:8px;
	--rounded-edge:30px;
	--circle-border:50%;
	--fs-small: 0.85rem;
	--fs-medium:1.5rem;
	--fs-large:2rem;
	--fw-light: 300;
	--fw-normal: 600;
	--fw-bold: 700;
}

/*___________________________________________Reset_____________________________________________*/

/* Box sizing rules */

*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* Remove default margin */

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core body defaults */

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* Make images easier to work with */

img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */

input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/*______________________________________________Utility Classes____________________________________________*/

.alert{
    height: 1rem!important;
}

.shake {
    animation: shake 0.3s ease-in-out 3;
}

/*___________________page styles__________________*/

body{
    font-family: 'Libre Franklin', sans-serif;
}

main{
    display: grid;
    place-items: center;
}

.container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding:5rem 3rem 3rem 3rem;
    max-width: 50rem;
}

.logo{
    width: 4rem;
}

.text-div{
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.text-div h1{
    font-size: var(--fs-medium);
}

.text-div span{
    font-weight: var(--fw-light);
    color: var(--primary-accent);
}

.text-div p{
    font-size: var(--fs-small);
}

form{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    width: 90%;
    position: relative;
}

form input{
    width: 100%;
    border-radius: var(--rounded-edge);
    padding: 0.65rem 2rem;
    font-size: var(--fs-small);
    border: 1px solid var(--secondary)
}

form input:focus{
    outline: 1px solid var(--primary-accent);
}

::placeholder{
    color: var(--secondary);
}

.warning{
    font-size: 0.65rem;
    color: red;
    font-style: italic;
    width: 80%;
    height: 0;
    overflow: hidden;
}

button{
    width: 100%;
    padding: 0.65rem;
    border: 0;
    font-size: var(--fs-small);
    font-weight: var(--fw-normal);
    border-radius: var(--rounded-edge);
    background-color: var(--primary);
    color: var(--white);
    cursor: pointer;
    box-shadow: 0px 14px 10px hsla(223, 55%, 52%, 0.151);
}

button:hover{
    background-color: hsla(223, 87%, 63%, 0.774);
}



.social-media-icons{
    display: flex;
    gap: 1.75rem;
    padding-top: 4rem;
}

.icon-circle{
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--circle-border);
    border: 1px solid var(--secondary);
    cursor: pointer;
}

.icon-circle:hover{
    background-color: var(--primary);
}
.icon-circle:hover i{
    color: var(--white);
}

i{
    color: var(--primary);
}

.copyright{
    font-size: var(--fs-small);
    color: var(--primary-accent);
}

@media screen and (min-width:600px) {
    .logo{
        width: 6rem;
    }
    .text-div h1{
        font-size: var(--fs-large);
    }
    form{
        flex-direction: row;
        gap:1rem;
        position: relative;
    }
    input{
        flex-grow: 1;
    }
    button{
        max-width: 12rem;
    }
    .dashboard-img-div{
        max-width: 40rem;
        padding-top: 3rem;
    }
    .warning{
        position: absolute;
        bottom: -1.5rem;
        left: 2rem;
    }
}

@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
    100% { transform: translateX(0); }
}