* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f5f6f8;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo img {
    width: 80px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

h1 {
    font-size: 22px;
    margin-bottom: 10px;
}

.subtext {
    color: #666;
    margin-bottom: 25px;
}

label {
    font-weight: 600;
    display: block;
    margin-top: 15px;
}

.input-group {
    position: relative;
    margin-top: 8px;
}

.input-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.input-group input {
    width: 100%;
    padding: 12px 40px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.toggle {
    right: 12px;
    left: auto !important;
    cursor: pointer;
}

.password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.password-header a {
    font-size: 14px;
    color: #d90404;
    text-decoration: none;
}

.remember {
    margin: 15px 0;
    font-size: 14px;
}

.signin-btn {
    width: 100%;
    padding: 14px;
    background: #d90404;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}

.create-btn {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: #e9ecef;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
}

.terms {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.terms a {
    color: #d90404;
    text-decoration: none;
}

#message {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
}

/* =========================
   MOBILE RESPONSIVE
   ========================= */

@media (max-width: 768px) {

    body{
        padding:20px;
        align-items:flex-start;
    }

    .container{
        max-width:100%;
        padding:10px;
    }

    .logo img{
        width:70px;
    }

    .card{
        padding:22px;
        border-radius:14px;
    }

    h1{
        font-size:20px;
    }

    .subtext{
        font-size:14px;
    }

    label{
        font-size:14px;
    }

    .input-group input{
        padding:12px 38px;
        font-size:15px;
    }

    .signin-btn{
        padding:13px;
        font-size:15px;
    }

    .create-btn{
        padding:12px;
        font-size:14px;
    }

    .remember{
        font-size:13px;
    }

    .password-header a{
        font-size:13px;
    }

    .terms{
        font-size:13px;
    }

}

/* EXTRA SMALL PHONES */
@media (max-width: 400px){

    .card{
        padding:18px;
    }

    h1{
        font-size:18px;
    }

    .logo img{
        width:60px;
    }

    .input-group input{
        padding:11px 35px;
    }

    .signin-btn{
        padding:12px;
    }

}


/* =========================
   LOADING SCREEN
========================= */

.loading-screen{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:#f4f6f9;
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

/* LOADER CENTER */

.loader-container{
    text-align:center;
}

/* ROTATING RING */

.ring-loader{
    position:relative;
    width:90px;
    height:90px;
    margin:auto;
}

.ring{
    width:100%;
    height:100%;
    border-radius:50%;
    border:6px solid transparent;
    border-top:6px solid #c0392b;
    border-right:6px solid #5dade2;
    border-bottom:6px solid #48c9b0;
    animation:loaderSpin 1.2s linear infinite;
}

/* CENTER DOT */

.loader-dot{
    position:absolute;
    top:50%;
    left:50%;
    width:18px;
    height:18px;
    background:linear-gradient(45deg,#c0392b,#5dade2);
    border-radius:50%;
    transform:translate(-50%,-50%);
}

/* LOADING TEXT */

.loading-text{
    margin-top:20px;
    font-size:18px;
    letter-spacing:2px;
    font-weight:500;
    background:linear-gradient(90deg,#c0392b,#5dade2);
    -webkit-background-cli:text;
    -webkit-text-fill-color:transparent;
}

/* ROTATION ANIMATION */

@keyframes loaderSpin{
    0%{ transform:rotate(0deg); }
    100%{ transform:rotate(360deg); }
}
