* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;

    background:
        radial-gradient(
            circle at top,
            #202040,
            #050505 55%
        );

    color: white;

    min-height: 100vh;
}


/* LOGIN */

.login-page {

    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 20px;
}


.login-box {

    width: 380px;

    max-width: 100%;

    padding: 40px;

    border-radius: 25px;

    background: rgba(255,255,255,.07);

    border: 1px solid
        rgba(255,255,255,.15);

    backdrop-filter: blur(20px);

    box-shadow:
        0 30px 80px
        rgba(0,0,0,.6);

    text-align: center;
}


.logo {

    font-size: 55px;

    margin-bottom: 15px;
}


.login-box h1 {

    margin-bottom: 8px;
}


.login-box p {

    color: #aaa;

    margin-bottom: 25px;
}


.login-box input {

    width: 100%;

    padding: 15px;

    margin-bottom: 15px;

    border-radius: 12px;

    border: 1px solid #333;

    background: #111;

    color: white;

    outline: none;

    font-size: 16px;
}


.login-box button,
.upload-box button {

    width: 100%;

    padding: 15px;

    border: none;

    border-radius: 12px;

    background:
        linear-gradient(
            90deg,
            #6c5ce7,
            #a855f7
        );

    color: white;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;
}


#loginError {

    color: #ff6565;

    margin-top: 15px;
}


/* APP */

.hidden {
    display: none !important;
}


header {

    height: 70px;

    padding: 0 5%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    background: rgba(0,0,0,.6);

    border-bottom: 1px solid #222;

    position: sticky;

    top: 0;

    z-index: 10;

    backdrop-filter: blur(15px);
}


.brand {

    font-size: 22px;

    font-weight: bold;
}


.brand span {

    color: #9b7cff;
}


.logout {

    background: #7f2525;

    color: white;

    border: none;

    padding: 10px 18px;

    border-radius: 10px;

    cursor: pointer;
}


main {

    width: 90%;

    max-width: 1400px;

    margin: auto;
}


.hero {

    padding: 60px 0 30px;
}


.hero h1 {

    font-size: 42px;

    margin-bottom: 10px;
}


.hero p {

    color: #aaa;

    font-size: 18px;
}


/* UPLOAD */

.upload-box {

    padding: 35px;

    margin-bottom: 50px;

    text-align: center;

    border-radius: 22px;

    border: 2px dashed #444;

    background: rgba(255,255,255,.04);
}


.upload-icon {

    font-size: 50px;

    margin-bottom: 15px;
}


.upload-box h2 {

    margin-bottom: 10px;
}


.upload-box p {

    color: #999;

    margin-bottom: 20px;
}


.upload-box input {

    display: block;

    margin: 20px auto;

    max-width: 100%;

    color: #ccc;
}


.upload-box button {

    max-width: 300px;
}


#uploadStatus {

    margin-top: 15px;

    color: #aaa;
}


/* SECTION */

.section-title {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;
}


.section-title span {

    color: #999;
}


/* VIDEO GRID */

.video-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(300px,1fr)
        );

    gap: 25px;

    padding-bottom: 60px;
}


.video-card {

    background: #111;

    border: 1px solid #292929;

    border-radius: 18px;

    overflow: hidden;

    transition: .25s;
}


.video-card:hover {

    transform: translateY(-5px);

    border-color: #735cff;
}


.video-card video {

    width: 100%;

    height: 200px;

    object-fit: cover;

    background: black;

    display: block;
}


.video-info {

    padding: 15px;
}


.video-name {

    font-weight: bold;

    margin-bottom: 7px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.video-meta {

    color: #777;

    font-size: 13px;

    margin-bottom: 12px;
}


.delete-btn {

    width: 100%;

    padding: 10px;

    border: none;

    border-radius: 9px;

    background: #7c2222;

    color: white;

    cursor: pointer;
}


.empty {

    grid-column: 1 / -1;

    text-align: center;

    padding: 70px;

    color: #777;
}


@media(max-width:600px) {

    .hero h1 {
        font-size: 30px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    header {
        padding: 0 20px;
    }

    .brand {
        font-size: 17px;
    }

}