/* public/css/auth.css */

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

/* Generic modal content (legacy auth modal) */
.modal-content {
    background-color: #1a1a1a;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    color: #fff;
    border-radius: 10px;
    position: relative;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-btn:hover,
.close-btn:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    background-color: #333;
    border: 1px solid #555;
    color: #fff;
    border-radius: 5px;
}

.btn {
    width: 100%;
    padding: 10px;
    background-color: #e50914;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

/* Playlist modal (styled like advanced page) */
.playlist-modal {
    display: block;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}
.playlist-modal-content {
    background-color: #1a1a1a;
    margin: 8% auto;
    padding: 24px 24px 28px;
    border: 1px solid rgba(255,255,255,0.15);
    width: 92%;
    max-width: 520px;
    color: #fff;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.playlist-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: 0;
    color: #aaa;
    font-size: 28px;
    cursor: pointer;
}
.playlist-close:hover { color: #fff; }
.playlist-title { text-align: center; margin-bottom: 16px; }
.playlist-modal .form-group { margin-bottom: 18px; }
.playlist-modal .form-label { font-weight: 600; margin-bottom: 10px; text-align: center; }
.playlist-modal .form-options { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.playlist-modal .form-option { background-color: rgba(255,255,255,0.1); border: 2px solid transparent; border-radius: 5px; padding: 10px 15px; color: #fff; cursor: pointer; transition: all 0.2s; }
.playlist-modal .form-option:hover { background-color: rgba(255,255,255,0.15); }
.playlist-modal .form-option.selected { background-color: rgba(229,9,20,0.2); border-color: #e50914; }
.playlist-create-row { display: flex; gap: 10px; }
.playlist-input { flex: 1; padding: 10px 12px; background-color: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; }
.playlist-input:focus { outline: none; border-color: #e50914; box-shadow: 0 0 0 2px rgba(229,9,20,0.2); }
.playlist-modal .btn-flix-primary { padding: 10px 16px; }
.no-playlists { text-align: center; color: #bbb; font-style: italic; }

.error-message {
    color: #e50914;
    margin-top: 10px;
}

#auth-modal p {
    margin-top: 15px;
}

#auth-modal a {
    color: #e50914;
    text-decoration: none;
    font-weight: bold;
}
