/* ==========================================
   Mobile-First Beautiful Login Design
   ========================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {

}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    font-family: "Baloo Bhaijaan 2", sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0 !important;
}

/* Auth Wrapper */
.auth-wrapper {
    width: 100%;
    max-width: 320px;
    position: relative;
    z-index: 120;
}

/* Auth Container - Main Card */
.auth-container {
    background: #ffffff;
    border-radius: 32px;
    padding: 32px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.6s ease-out;
}

/* Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo img {
    max-width: 80px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(102, 97, 199, 0.2));
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

/* Title & Subtitle */
.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 15px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 24px;
    font-weight: 500;
}

/* Alert Messages */
.auth-alert {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(238, 90, 111, 0.3);
    animation: shake 0.5s ease-out;
}

.auth-alert p {
    margin: 0;
    padding: 4px 0;
}

/* Form Styling */
.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.form-group input {
    width: 100%;
    padding: 16px 18px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    background: #f9fafb;
    color: #1f2937;
    transition: all 0.3s ease;
    font-family: "Baloo Bhaijaan 2", sans-serif;
    text-align: right;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

/* Custom Checkbox */
.form-check-group {
    margin-bottom: 28px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 32px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    right: 0;
    height: 22px;
    width: 22px;
    background-color: #f3f4f6;
    border: 2px solid #d1d5db;
    border-radius: 7px;
    transition: all 0.3s ease;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #e5e7eb;
}

.checkbox-container input:checked ~ .checkmark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    right: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label {
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
}

/* Submit Button */
.auth-btn {
    width: 100%;
    padding: 17px;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    font-family: "Baloo Bhaijaan 2", sans-serif;
    margin-bottom: 20px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.5);
}

.auth-btn:active {
    transform: translateY(0);
}

/* Forgot Password Link */
.forgot-link {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Decorative Elements - Mobile */
.decoration {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    pointer-events: none;
    z-index: -1;
}

.decoration-1 {
    width: 200px;
    height: 200px;
    top: -80px;
    right: -80px;
    animation: float 15s ease-in-out infinite;
}

.decoration-2 {
    width: 150px;
    height: 150px;
    bottom: -60px;
    left: -60px;
    animation: float 12s ease-in-out infinite reverse;
}

.decoration-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: -50px;
    animation: float 18s ease-in-out infinite;
}

/* Animations */
/*@keyframes slideUp {*/
/*    from {*/
/*        opacity: 0;*/
/*        transform: translateY(40px);*/
/*    }*/
/*    to {*/
/*        opacity: 1;*/
/*        transform: translateY(0);*/
/*    }*/
/*}*/

/*@keyframes fadeIn {*/
/*    from {*/
/*        opacity: 0;*/
/*    }*/
/*    to {*/
/*        opacity: 1;*/
/*    }*/
/*}*/

/*@keyframes float {*/
/*    0%, 100% {*/
/*        transform: translate(0, 0);*/
/*    }*/
/*    33% {*/
/*        transform: translate(20px, -20px);*/
/*    }*/
/*    66% {*/
/*        transform: translate(-20px, 20px);*/
/*    }*/
/*}*/

/*@keyframes shake {*/
/*    0%, 100% { transform: translateX(0); }*/
/*    25% { transform: translateX(-8px); }*/
/*    75% { transform: translateX(8px); }*/
/*}*/

/* ==========================================
   Tablet & Desktop Responsive
   ========================================== */

@media (min-width: 768px) {
    body {
        background: linear-gradient(135deg, #66a2ea 0%, #6761c7 100%);
    }

    .auth-wrapper {
        max-width: 480px;
    }

    .auth-container {
        padding: 30px 44px;
        border-radius: 28px;
    }

    .auth-logo img {
        max-width: 100px;
    }

    .auth-title {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .auth-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .form-group {
        margin-bottom: 26px;
    }

    .form-group label {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .form-group input {
        padding: 18px 20px;
        font-size: 16px;
        border-radius: 14px;
    }

    .form-check-group {
        margin-bottom: 32px;
    }

    .checkbox-label {
        font-size: 15px;
    }

    .auth-btn {
        padding: 18px;
        font-size: 18px;
        border-radius: 14px;
        margin-bottom: 24px;
    }

    .forgot-link {
        font-size: 15px;
    }

    .auth-alert {
        padding: 18px 24px;
        font-size: 15px;
        margin-bottom: 28px;
    }

    /* Larger decorations for desktop */
    .decoration-1 {
        width: 300px;
        height: 300px;
        top: -120px;
        right: -120px;
    }

    .decoration-2 {
        width: 250px;
        height: 250px;
        bottom: -100px;
        left: -100px;
    }

    .decoration-3 {
        width: 180px;
        height: 180px;
        top: 40%;
        left: -80px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .auth-wrapper {
        max-width: 520px;
    }

    .auth-container {
        padding: 30px 50px;
    }

    .auth-logo img {
        max-width: 120px;
    }
}

/* Small Mobile */
@media (max-width: 374px) {
    .auth-container {
        padding: 32px 24px;
        border-radius: 28px;
    }

    .auth-title {
        font-size: 24px;
    }

    .auth-subtitle {
        font-size: 14px;
    }

    .form-group input {
        padding: 14px 16px;
        font-size: 14px;
    }

    .auth-btn {
        padding: 15px;
        font-size: 16px;
    }
}
