/* general */
body {
    margin: 0;
    background-color: #000;
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    overflow: hidden;
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
}

.line {
    font-size: 1.3rem;
    color: #888;
    margin: 5px 0;
    opacity: 0;
    animation: fadeIn 3.5s ease-out forwards;
}

.line:nth-child(1) {
    animation-delay: 0s;
}

.line:nth-child(2) {
    animation-delay: 0.75s;
}

.line:nth-child(3) {
    animation-delay: 1.5s;
}

/* title-text */
.title {
    background: linear-gradient(90deg, #e30613, #ff5a5a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3rem;
    letter-spacing: 5px;
    margin: 20px 0;
    opacity: 0;
    animation: fadeIn 3.5s ease-out forwards;
    animation-delay: 6s;
    font-weight: 900;
    user-select: none;
    text-shadow: 0 0 8px rgba(227, 6, 19, 0.7);
    transition: letter-spacing 0.3s ease;
}

.title:hover {
    letter-spacing: 8px;
}

/* title link style */
.title-link {
    text-decoration: none; /* no underline by default */
    cursor: default;
    display: inline-block;
    color: inherit; /* keep the red color from .title */
}

.title-link:hover {
    cursor: pointer;
    text-decoration: none; /* no underline on hover */
}

.title-link:hover .title {
    letter-spacing: 8px;
}

/* logo styling */
.logo {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    margin: 10px 0;
    border: none;
    box-shadow: none;
    opacity: 0;
    animation: fadeIn 3.5s ease-out forwards;
    animation-delay: 5.5s;
    position: relative;
    display: inline-block;
    cursor: default;
    transition: transform 0.3s ease;
}

/* hover effect */
.logo:hover,
.scale-hover:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(227, 6, 19, 0.5);
}

/* Rytas and B Tribūna logos */
.scale-hover {
    width: 100px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* links container */
.links {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    opacity: 0;
    animation: fadeIn 3.5s ease-out forwards;
    animation-delay: 3.7s; /* after logo fades in */
}

/* footer */
footer {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #444;
}


.hidden-footer {
    display: none;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 3s forwards;
    animation-delay: 4.2s; /* after links */
}

.contact a {
    color: #e30613;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

/* Fade in animation */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* iPhone / small screen fixes */
@media only screen and (max-width: 430px) {
    .line:nth-child(1) {
        margin-top: 0;
        font-size: 1.2rem;
        line-height: 1.1;
    }

    .contact a {
        word-break: break-word;
        padding: 0 5px;
        font-size: 0.9rem;
    }
}


.login-container {
    background-color: #111;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(227, 6, 19, 0.4);
    max-width: 320px;
    width: 90%;
    margin-top: 50px;
}

.login-container h2 {
    margin-bottom: 20px;
    background: linear-gradient(90deg, #e30613, #ff5a5a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #bbb;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #222;
    color: #fff;
}

button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #e30613;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #ff5a5a;
}
