:root {
    --primary-color: #2c5aa0;
    --secondary-color: #4CAF50;
    --accent-color: #ff9800;
    --light-color: #ffffff;
    --dark-color: #333333;
    --gray-color: #f5f5f5;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #e7f3ff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

    body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('https://www.extramarks.com/images/em-bg-pattern.png') repeat;
        opacity: 0.05;
        z-index: -1;
    }

.login-container {
    background-color: var(--light-color);
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 420px;
    padding: 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    z-index: 1;
}

    .login-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 8px;
        background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    }

.logo {
    margin-bottom: 30px;
    position: relative;
}

    .logo h1 {
        color: var(--primary-color);
        font-size: 2.5rem;
        font-weight: 800;
        letter-spacing: 1px;
        margin-bottom: 10px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

.typing-text {
    color: var(--dark-color);
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.5;
    height: 1.5em;
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    display: inline-block;
}

.login-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
    position: relative;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: var(--dark-color);
        font-weight: 600;
        font-size: 0.9rem;
    }

    .form-group input {
        width: 100%;
        padding: 15px 20px;
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        font-size: 1rem;
        transition: all 0.3s ease;
        background-color: var(--gray-color);
    }

        .form-group input:focus {
            border-color: var(--primary-color);
            background-color: white;
            box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.2);
            outline: none;
        }

    .form-group i {
        position: absolute;
        right: 20px;
        top: 42px;
        color: #999;
    }

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

    .remember-me input {
        margin-right: 10px;
        width: 18px;
        height: 18px;
        accent-color: var(--primary-color);
    }

    .remember-me label {
        color: var(--dark-color);
        font-size: 0.9rem;
        cursor: pointer;
    }

.login-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a7bd5 100%);
    color: white;
    border: none;
    padding: 16px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 600px) {
    .logo-con img {
        width: 100px;
        height: 50px;
    }
}


.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
    background: linear-gradient(135deg, #254e8f 0%, #3268b8 100%);
}

.login-btn:active {
    transform: translateY(0);
}

.footer {
    color: #777;
    font-size: 0.8rem;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .typing-text {
        font-size: 0.9rem;
    }

    .form-group input {
        padding: 12px 15px;
    }
}

/* Animation */
@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent
    }

    50% {
        border-color: var(--primary-color)
    }
}
