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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 380px;
}

.auth-container h2 {
    margin-bottom: 24px;
    color: #1e293b;
    text-align: center;
    font-size: 1.4rem;
}

.auth-container label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #334155;
    font-weight: 600;
}

.auth-container input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.auth-container input:focus {
    outline: none;
    border-color: #2563eb;
}

.auth-container button {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-container button:hover {
    background: #1d4ed8;
}

.alert {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.alert-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.btn-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

/* Dashboard */
.dashboard-container {
    width: 100%;
    max-width: 900px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.dashboard-header {
    background: #1e293b;
    color: #fff;
    padding: 18px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-logout {
    background: #ef4444;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-logout:hover {
    background: #dc2626;
}

.dashboard-content {
    padding: 28px;
}

.card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
}

.card h3 {
    margin-bottom: 10px;
    color: #1e293b;
}

.card p {
    color: #475569;
    line-height: 1.6;
}

/* Layout */

.layout{
    display:flex;
    min-height:100vh;
}

/* Sidebar */

.sidebar{
    width:250px;
    background:#1f2937;
    color:#fff;
    padding:20px;
}

.sidebar-logo{
    text-align:center;
    margin-bottom:30px;
}

.sidebar-logo h2{
    font-size:24px;
}

.sidebar-menu{
    display:flex;
    flex-direction:column;
}

.sidebar-menu a{
    color:#fff;
    text-decoration:none;
    padding:12px 15px;
    border-radius:8px;
    margin-bottom:8px;
    transition:.3s;
}

.sidebar-menu a:hover{
    background:#374151;
}

.sidebar-menu hr{
    margin:15px 0;
    border:none;
    border-top:1px solid rgba(255,255,255,.15);
}

.logout{
    background:#dc3545;
}

.logout:hover{
    background:#b91c1c;
}

/* Sağ taraf */

.main-content{
    flex:1;
    background:#f4f6f9;
}

/* Header */

.dashboard-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 30px;
    background:#fff;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

/* Content */

.dashboard-content{
    padding:30px;
}

.card{
    background:#fff;
    padding:25px;
    border-radius:10px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}
