@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Open+Sans:wght@400;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: #1e3a6e;
    min-height: 100vh;
    overflow-x: hidden;
}

.brgy-app {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bg-wrap {
    flex: 1;
    min-height: 100vh;
    background: url('../assets/images/bg bagum.png') center/cover no-repeat fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Watermark */
.watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
}

.watermark span {
    font-family: 'Cinzel', serif;
    font-size: clamp(80px, 20vw, 200px);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.04);
    letter-spacing: 8px;
    white-space: nowrap;
    transform: scaleY(1.2);
}

/* Page Title */
.page-title {
    position: absolute;
    top: 30px;
    right: 40px;
    text-align: right;
    font-family: 'Cinzel', serif;
    color: white;
    line-height: 1.3;
    z-index: 2;
}

.page-title span {
    font-size: clamp(16px, 3vw, 28px);
    font-weight: 700;
    letter-spacing: 3px;
    display: block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Login Container */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
}

/* Logo Side */
.logo-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
}

.logo-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.logo-text {
    text-align: center;
    color: white;
    font-family: 'Cinzel', serif;
    font-size: 18px;
    letter-spacing: 2px;
}

/* Form Card */
.form-card {
    background: rgba(173, 210, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 50px 45px;
    min-width: 380px;
    max-width: 450px;
    width: 100%;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.form-card h2 {
    color: #ffd700;
    font-family: 'Cinzel', serif;
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
}

/* Input Fields */
.brgy-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    font-size: 16px;
    color: #1a3a6e;
    outline: none;
    margin-bottom: 18px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

.brgy-input:focus {
    border-color: #ffd700;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.brgy-input::placeholder {
    color: #7a9ccc;
    font-size: 15px;
}

select.brgy-input {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%231a3a6e" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 18px center;
}

/* Buttons */
.brgy-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-signin {
    background: #ffd700;
    color: #1a3a6e;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-signin:hover {
    background: #ffe44d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.btn-signup-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    font-size: 16px;
}

.btn-signup-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffd700;
    transform: translateY(-2px);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

/* Forgot Password */
.forgot {
    text-align: right;
    margin-top: -10px;
    margin-bottom: 20px;
}

.forgot a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot a:hover {
    color: #ffd700;
}

/* Messages */
.error-msg,
.success-msg {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}

.error-msg {
    background: #e74c3c;
    color: white;
}

.success-msg {
    background: #27ae60;
    color: white;
}

/* Footer */
.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        gap: 30px;
    }
    
    .form-card {
        padding: 35px 30px;
        min-width: 320px;
    }
    
    .logo-img {
        width: 130px;
        height: 130px;
        font-size: 60px;
    }
    
    .form-card h2 {
        font-size: 24px;
    }
    
    .brgy-input {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .brgy-btn {
        padding: 12px;
        font-size: 16px;
    }
    
    .page-title {
        top: 20px;
        right: 20px;
    }
    
    .page-title span {
        font-size: 12px;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 30px 25px;
        min-width: 280px;
    }
    
    .logo-img {
        width: 100px;
        height: 100px;
        font-size: 50px;
    }
    
    .brgy-input {
        padding: 11px 14px;
        font-size: 14px;
    }
}