* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #E6DCD3 0%, #F8F5F1 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    color: #4A3C31; 
}

.container {
    text-align: center;
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(74, 60, 49, 0.1); 
}

.profile-pic {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(74, 60, 49, 0.15);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    color: #4A3C31; 
}

p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 30px;
    color: #7A6556; 
}

.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.links a {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(255, 255, 255, 0.8); 
    color: #4A3C31; 
    padding: 16px 20px;
    text-decoration: none;
    border-radius: 50px; 
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 10px rgba(74, 60, 49, 0.05);
}

.links a i {
    position: absolute;
    left: 24px;
    font-size: 1.2rem;
    color: #8B6B56; 
    transition: all 0.3s ease;
}

.links a:hover {
    transform: translateY(-4px);
    background: #4A3C31; 
    box-shadow: 0 8px 20px rgba(74, 60, 49, 0.2);
    color: #ffffff; 
    border-color: #4A3C31;
}

.links a:hover i {
    color: #ffffff;
}

/* Password Lock Overlay */
.lock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(230, 220, 211, 0.95) 0%, rgba(248, 245, 241, 0.95) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lock-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 25px 50px rgba(74, 60, 49, 0.15);
    border-radius: 24px;
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.lock-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(74, 60, 49, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4A3C31;
    font-size: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.lock-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #4A3C31;
    margin-bottom: 8px;
}

.lock-card p {
    font-size: 0.9rem;
    color: #7A6556;
    margin-bottom: 24px;
}

.input-group {
    position: relative;
    margin-bottom: 16px;
}

.password-input {
    width: 100%;
    padding: 16px 48px 16px 20px;
    border-radius: 50px;
    border: 1.5px solid rgba(74, 60, 49, 0.2);
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    color: #4A3C31;
    outline: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

.password-input:focus {
    border-color: #4A3C31;
    box-shadow: 0 0 0 4px rgba(74, 60, 49, 0.1);
}

.toggle-pwd {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8B6B56;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    border: none;
    background: #4A3C31;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(74, 60, 49, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background: #362b23;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 60, 49, 0.3);
}

.error-message {
    color: #d93838;
    font-size: 0.85rem;
    margin-top: 12px;
    display: none;
    font-weight: 500;
}

.error-shake {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.hidden-lock {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}