@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 480px;
    text-align: center;
}

/* Logo */
.logo-container {
    margin-bottom: 20px;
}

.login-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Welcome Text */
.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* Login Box */
.login-box {
    background: white;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #333;
    /* Darker label for register */
    margin-bottom: 8px;
    font-weight: 700;
    /* Bold label for register */
}

/* Input with Icon */
.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #000;
    font-size: 1.1rem;
    z-index: 1;
}

.form-input {
    width: 100%;
    padding: 16px 18px 16px 50px;
    border: 2.5px solid #000;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    /* Bolder input text */
    transition: all 0.3s ease;
    background: white;
    color: #000;
}

/* Modifier class for inputs without icons (Register Page) */
.form-input.no-icon {
    padding-left: 18px;
    /* Remove extra padding for icon */
}

.form-input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-input::placeholder {
    color: #000;
    font-weight: 700;
}

/* Input Hint Text */
.input-hint {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-top: 6px;
    font-weight: 400;
}

/* CAPTCHA */
.captcha-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Input field for entering CAPTCHA */
.captcha-input {
    flex: 1;
    padding: 16px 18px;
    border: 2.5px solid #000;
    border-radius: 12px;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 12px;
    background: white;
    color: #000;
}

.captcha-input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* Small display box showing the CAPTCHA code */
.captcha-display-small {
    width: 120px;
    padding: 16px 12px;
    border: 2.5px solid #e0e0e0;
    border-radius: 12px;
    background: #f5f5f5;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 5px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.captcha-display-small:hover {
    background: #ececec;
    border-color: #d0d0d0;
    transform: scale(1.02);
}

.captcha-display-small:active {
    transform: scale(0.98);
}


.captcha-hint {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-top: 8px;
    font-weight: 400;
}

/* Buttons */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: #2d2d2d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-submit i {
    font-size: 0.9rem;
}

/* Register Action Button (Gradient) */
.btn-register-action {
    background: linear-gradient(90deg, #8E2DE2 0%, #4A00E0 100%);
    /* Purple gradient */
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(116, 58, 213, 0.4);
}

.btn-register-action:hover {
    background: linear-gradient(90deg, #7b27c4 0%, #3e00be 100%);
    box-shadow: 0 6px 20px rgba(116, 58, 213, 0.5);
    transform: translateY(-2px);
}

.btn-register {
    display: block;
    width: 100%;
    padding: 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Register Page Specific Titles */
.register-title {
    text-align: left;
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.register-subtitle {
    text-align: left;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
}

/* Adjust Login Box for Register Page */
.register-box {
    text-align: left;
    /* Align everything left inside the box */
    padding: 40px 35px;
}


/* Register Prompt on Login Page */
.register-prompt {
    margin: 40px 0 10px;
    font-size: 0.9rem;
    color: #666;
}

/* Footer */
.login-footer {
    margin-top: 30px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Text Link Purple */
.text-link-purple {
    color: #8E2DE2;
    text-decoration: none;
    font-weight: 700;
}

.text-link-purple:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
    font-size: 0.9rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #047857;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #dc2626;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
    font-size: 32px;
    color: white;
}

/* Responsive */
@media (max-width: 576px) {
    .welcome-title {
        font-size: 1.75rem;
    }

    .login-box {
        padding: 30px 25px;
    }

    .captcha-input {
        font-size: 1.25rem;
        padding: 12px;
        letter-spacing: 5px;
    }
}