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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
}

/* Top Left Logo */
.topLogo {
    position: fixed;
    top: 24px;
    left: 32px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.topLogo:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.topLogo img {
    height: 40px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.topLogo:hover img {
    transform: scale(1.05);
}

.loginMain {
    display: grid;
    grid-template-rows: repeat(30, 1fr);
    grid-template-columns: repeat(30, 1fr);
    height: 100vh;
    position: relative;
}

.topBackground {
    grid-area: 1 / 1 / 18 / 31;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.topBackground::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.1) translate(-5%, -5%); }
}

.bottomBackground {
    grid-area: 18 / 1 / 31 / 31;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.loginPanel {
    grid-area: 8 / 10 / 26 / 22;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 100px rgba(102, 126, 234, 0.2);
    min-width: 20rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.loginFormDiv {
    width: 100%;
}

.loginForm {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.loginForm > p {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    position: relative;
    padding-bottom: 0.75rem;
}

.loginForm > p::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, transparent);
    border-radius: 2px;
}

.usernameDiv,
.passwordDiv {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.usernameDiv:focus-within,
.passwordDiv:focus-within {
    background: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.usernameDiv img,
.passwordDiv img {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.usernameDiv:focus-within img,
.passwordDiv:focus-within img {
    opacity: 1;
}

.usernameDiv input,
.passwordDiv input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: #1a1a2e;
    font-family: 'Outfit', sans-serif;
}

.usernameDiv input::placeholder,
.passwordDiv input::placeholder {
    color: #9ca3af;
}

.loginForm button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin-top: 0.5rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.loginForm button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.loginForm button:active {
    transform: translateY(0);
}

/* Social Links */
.socialLinks {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.socialIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.socialIcon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.socialIcon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    color: white;
}

.socialIcon.facebook:hover::before {
    background: linear-gradient(135deg, #1877f2 0%, #0e5fcc 100%);
    opacity: 1;
}

.socialIcon.twitter:hover::before {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    opacity: 1;
}

.socialIcon.instagram:hover::before {
    background: linear-gradient(135deg, #e4405f 0%, #d62976 50%, #962fbf 100%);
    opacity: 1;
}

.socialIcon.linkedin:hover::before {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
    opacity: 1;
}

.socialIcon svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.socialIcon:hover svg {
    transform: scale(1.1);
}

.socialIcon:active {
    transform: translateY(-1px) scale(1.02);
}

/* Error Modal */
.errorModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation-duration: 0.4s;
}

.errorModalContent {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation-duration: 0.5s;
    position: relative;
}

.errorIcon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
    animation: pulse-error 2s ease-in-out infinite;
}

@keyframes pulse-error {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 32px rgba(255, 107, 107, 0.6);
    }
}

.errorModalContent h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
    font-family: 'Outfit', sans-serif;
}

.errorModalContent p {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-family: 'Outfit', sans-serif;
}

.errorModalBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

.errorModalBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.errorModalBtn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .loginPanel {
        grid-area: 8 / 9 / 26 / 23;
    }
}

@media (max-width: 1200px) {
    .loginPanel {
        grid-area: 7 / 8 / 27 / 24;
    }
}

@media (max-width: 1024px) {
    .loginPanel {
        grid-area: 7 / 7 / 27 / 25;
    }
}

@media (max-width: 900px) {
    .loginPanel {
        grid-area: 6 / 6 / 28 / 26;
    }
}

@media (max-width: 768px) {
    .topLogo {
        top: 20px;
        left: 20px;
        padding: 10px 16px;
        border-radius: 14px;
    }
    
    .topLogo img {
        height: 36px;
    }
    
    .loginMain {
        grid-template-rows: repeat(20, 1fr);
        grid-template-columns: repeat(20, 1fr);
    }
    
    .topBackground {
        grid-area: 1 / 1 / 12 / 21;
    }
    
    .bottomBackground {
        grid-area: 12 / 1 / 21 / 21;
    }
    
    .loginPanel {
        grid-area: 5 / 3 / 17 / 19;
        padding: 2rem 1.5rem;
    }
    
    .loginForm > p {
        font-size: 2.25rem;
        padding-bottom: 0.65rem;
    }
    
    .loginForm > p::after {
        width: 55px;
        height: 2.5px;
    }
    
    .socialLinks {
        gap: 0.875rem;
        margin-top: 1.75rem;
        padding-top: 1.25rem;
    }
    
    .socialIcon {
        width: 42px;
        height: 42px;
    }
    
    .socialIcon svg {
        width: 19px;
        height: 19px;
    }
    
    .errorModalContent {
        padding: 2rem 1.5rem;
    }
    
    .errorIcon {
        width: 70px;
        height: 70px;
    }
    
    .errorIcon svg {
        width: 40px;
        height: 40px;
    }
    
    .errorModalContent h3 {
        font-size: 1.5rem;
    }
    
    .errorModalContent p {
        font-size: 0.95rem;
    }
}

@media (max-width: 640px) {
    .topLogo {
        top: 18px;
        left: 18px;
        padding: 9px 14px;
        border-radius: 13px;
    }
    
    .topLogo img {
        height: 34px;
    }
    
    .loginPanel {
        grid-area: 5 / 2 / 17 / 20;
        padding: 1.75rem 1.25rem;
    }
    
    .loginForm > p {
        font-size: 2rem;
        padding-bottom: 0.6rem;
    }
    
    .loginForm > p::after {
        width: 50px;
        height: 2.5px;
    }
    
    .usernameDiv,
    .passwordDiv {
        padding: 0.7rem 0.9rem;
    }
    
    .socialLinks {
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .socialIcon {
        width: 40px;
        height: 40px;
    }
    
    .socialIcon svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .topLogo {
        top: 16px;
        left: 16px;
        padding: 8px 12px;
        border-radius: 12px;
    }
    
    .topLogo img {
        height: 32px;
    }
    
    .loginMain {
        grid-template-rows: repeat(15, 1fr);
        grid-template-columns: repeat(15, 1fr);
    }
    
    .topBackground {
        grid-area: 1 / 1 / 9 / 17;
    }
    
    .bottomBackground {
        grid-area: 9 / 1 / 17 / 17;
    }
    
    .loginPanel {
        grid-area: 4 / 2 / 14 / 16;
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .loginForm {
        gap: 1.25rem;
    }
    
    .loginForm > p {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
        padding-bottom: 0.55rem;
    }
    
    .loginForm > p::after {
        width: 45px;
        height: 2px;
    }
    
    .usernameDiv,
    .passwordDiv {
        padding: 0.65rem 0.85rem;
    }
    
    .usernameDiv img,
    .passwordDiv img {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }
    
    .usernameDiv input,
    .passwordDiv input {
        font-size: 0.9rem;
    }
    
    .loginForm button {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .socialLinks {
        gap: 0.625rem;
        margin-top: 1.25rem;
        padding-top: 0.875rem;
    }
    
    .socialIcon {
        width: 38px;
        height: 38px;
    }
    
    .socialIcon svg {
        width: 17px;
        height: 17px;
    }
    
    .errorModalContent {
        padding: 1.75rem 1.25rem;
        width: 95%;
    }
    
    .errorIcon {
        width: 64px;
        height: 64px;
        margin-bottom: 1.25rem;
    }
    
    .errorIcon svg {
        width: 36px;
        height: 36px;
    }
    
    .errorModalContent h3 {
        font-size: 1.35rem;
    }
    
    .errorModalContent p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .errorModalBtn {
        padding: 0.75rem 2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .topLogo {
        top: 12px;
        left: 12px;
        padding: 6px 10px;
        border-radius: 10px;
    }
    
    .topLogo img {
        height: 28px;
    }
    
    .loginPanel {
        grid-area: 3 / 1 / 15 / 17;
        padding: 1.25rem 0.85rem;
        border-radius: 12px;
    }
    
    .loginForm {
        gap: 1rem;
    }
    
    .loginForm > p {
        font-size: 1.5rem;
        padding-bottom: 0.5rem;
    }
    
    .loginForm > p::after {
        width: 40px;
        height: 2px;
    }
    
    .usernameDiv,
    .passwordDiv {
        padding: 0.6rem 0.75rem;
    }
    
    .usernameDiv img,
    .passwordDiv img {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }
    
    .usernameDiv input,
    .passwordDiv input {
        font-size: 0.85rem;
    }
    
    .loginForm button {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .socialLinks {
        gap: 0.5rem;
        margin-top: 1rem;
        padding-top: 0.75rem;
    }
    
    .socialIcon {
        width: 36px;
        height: 36px;
    }
    
    .socialIcon svg {
        width: 16px;
        height: 16px;
    }
    
    .errorModalContent {
        padding: 1.5rem 1rem;
    }
    
    .errorIcon {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }
    
    .errorIcon svg {
        width: 32px;
        height: 32px;
    }
    
    .errorModalContent h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .errorModalContent p {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }
    
    .errorModalBtn {
        padding: 0.7rem 1.75rem;
        font-size: 0.9rem;
    }
}