:root {
    --primary-blue: #00c0ed;
    --primary-green: #b7d22b;
    --primary-white: #ffffff;
    --primary-black: #000000;
    --light-blue: #f0f9ff;
    --light-green: #f8fce6;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #343a40;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-blue);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px;
    margin: 0;
}

.container-custom {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.main-card {
    background: var(--primary-white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: none;
    padding: 30px;
}

.logo {
    text-align: center;
    margin-bottom: 25px;
}

.logo-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary-white);
    font-size: 28px;
}

.logo h1 {
    color: var(--primary-black);
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 5px;
}

.logo p {
    color: var(--gray-medium);
    font-size: 14px;
    line-height: 1.4;
}

.form-label {
    color: var(--gray-dark);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
}

.form-control {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 192, 237, 0.15);
}

.form-control::placeholder {
    color: var(--gray-medium);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    font-size: 16px;
}

.input-with-icon input {
    padding-left: 40px;
}

.btn-custom-primary {
    background-color: var(--primary-green);
    border: none;
    color: var(--primary-white);
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
}

.btn-custom-primary:hover {
    background-color: var(--primary-blue);
    color: var(--primary-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 192, 237, 0.2);
}

.btn-custom-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-custom-secondary {
    background-color: var(--primary-white);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
}

.btn-custom-secondary:hover {
    background-color: var(--light-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 192, 237, 0.1);
}

.separator {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.separator::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e9ecef;
}

.separator span {
    background: var(--primary-white);
    padding: 0 15px;
    color: var(--gray-medium);
    font-size: 13px;
    position: relative;
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 20px;
}

.forgot-password a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.forgot-password a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.admin-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.admin-link a {
    color: var(--gray-medium);
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.admin-link a:hover {
    color: var(--primary-blue);
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Alert styling */
.alert-custom {
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-custom i {
    font-size: 18px;
}

.alert-custom.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-custom.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-custom.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .main-card {
        padding: 20px;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .logo h1 {
        font-size: 20px;
    }

    body {
        padding: 15px;
    }
}

@media (max-width: 400px) {
    .container-custom {
        padding: 0 10px;
    }

    .main-card {
        padding: 15px;
    }
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}
